Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
57fc307
)
Added test to see if in vim's shell (via the :sh command)
author
Mark Szymanski
<mrman208@me.com>
Sat, 4 Dec 2010 18:22:32 +0000
(12:22 -0600)
committer
Mark Szymanski
<mrman208@me.com>
Sat, 4 Dec 2010 18:22:32 +0000
(12:22 -0600)
themes/minimal/minimal.theme.bash
patch
|
blob
|
history
diff --git
a/themes/minimal/minimal.theme.bash
b/themes/minimal/minimal.theme.bash
index
2f9b926
..
a94c453
100644
(file)
--- a/
themes/minimal/minimal.theme.bash
+++ b/
themes/minimal/minimal.theme.bash
@@
-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
}