Extract smart prompt selection to separate script
This commit is contained in:
parent
6386a08291
commit
4acb5c71e7
2 changed files with 4 additions and 2 deletions
|
@ -17,5 +17,4 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
git rev-parse --show-toplevel >/dev/null 2>&1 \
|
||||
&& prompt gitlong || prompt normal
|
||||
source smartprompt
|
||||
|
|
3
bin/smartprompt
Executable file
3
bin/smartprompt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
git rev-parse --show-toplevel >/dev/null 2>&1 && prompt gitlong || prompt normal
|
Loading…
Reference in a new issue