Extract smart prompt selection to separate script

This commit is contained in:
Talia 2021-06-28 09:07:53 +02:00
parent 6386a08291
commit 4acb5c71e7
2 changed files with 4 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
#!/bin/sh
git rev-parse --show-toplevel >/dev/null 2>&1 && prompt gitlong || prompt normal