Added test to see if in vim's shell (via the :sh command)

pull/32/head
Mark Szymanski 2010-12-04 12:22:32 -06:00
parent 57fc307e11
commit 4476156eb8
1 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,18 @@
prompt_setter() {
if [[ $? -eq 0 ]]; then
PS1="\W "
if [ ! $VIMRUNTIME = "" ]
then
PS1="{vim} \W "
else
PS1="\W "
fi
else
PS1="${bold_red}\W ${normal}"
if [ ! $VIMRUNTIME = "" ]
then
PS1="{vim} ${bold_red}\W ${normal}"
else
PS1="${bold_red}\W ${normal}"
fi
fi
}