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