Added test to see if in vim's shell (via the :sh command)
parent
57fc307e11
commit
4476156eb8
|
|
@ -1,9 +1,19 @@
|
|||
prompt_setter() {
|
||||
if [[ $? -eq 0 ]]; then
|
||||
if [ ! $VIMRUNTIME = "" ]
|
||||
then
|
||||
PS1="{vim} \W "
|
||||
else
|
||||
PS1="\W "
|
||||
fi
|
||||
else
|
||||
if [ ! $VIMRUNTIME = "" ]
|
||||
then
|
||||
PS1="{vim} ${bold_red}\W ${normal}"
|
||||
else
|
||||
PS1="${bold_red}\W ${normal}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
PROMPT_COMMAND=prompt_setter
|
||||
|
|
|
|||
Loading…
Reference in New Issue