Commit 8a86c224 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Improve bash prompt fix


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@20096 4525493e-7705-40b1-a816-d608a930855b
parent 83d72164
......@@ -7,17 +7,17 @@
### project=`ls ${topdir}/*.xenv`
### project=`basename ${project} .xenv`
###fi
###PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
# Minimal bash setup
if [ `uname` == "Darwin" ]; then
alias 'ls=ls -aFG'
# Fix issues in prompt (see http://unix.stackexchange.com/a/167911)
shopt -s checkwinsize
shopt -s checkwinsize # See http://unix.stackexchange.com/a/167911
PS1='\[\e[7;34m\][\u@\h \s]\[\e[0m\]\[\e[1;34m\] \W > \[\e[0m\]'
else
alias 'ls=ls -aF --color=tty'
PS1='\[\e[7;34m\][\u@\h \s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
fi
###PS1='\[\e[7;34m\][\u@\h '$project'\s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
PS1='\[\e[7;34m\][\u@\h \s]\[\e[0m\]\[\e[1;34m\] \w > \[\e[0m\]'
alias 'rm=rm -i'
alias 'mv=mv -i'
alias 'cp=cp -i'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment