OILS
/
demo
/ git-prompt.sh
View on Github
|
oilshell.org
14 lines, 6 significant
1
#!/usr/bin/env bash
2
#
3
# Copied from my bashrc.
4
5
# TODO: The branch name isn't being displayed?
6
git-prompt() {
7
. testdata/completion/git
8
. ~/git-prompt.sh
9
10
export PS1=
'
\u@\h \w$(__git_ps1 " (%s)")\$
'
11
}
12
13
git-prompt
14