blob: cef5117be77de47e2ff80976e5a3867f1df4cfb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
post_install() {
echo "bash-git-prompt
NOTE: To use bash-git-prompt, you should add the following to your
/etc/bash.bashrc or ~/.bashrc:
if [ -f /usr/lib/bash-git-prompt/gitprompt.sh ]; then
# To only show the git prompt in or under a repository directory
# GIT_PROMPT_ONLY_IN_REPO=1
# To use upstream's default theme
# GIT_PROMPT_THEME=Default
# To use upstream's default theme, modified by arch maintainer
GIT_PROMPT_THEME=Default_Arch
source /usr/lib/bash-git-prompt/gitprompt.sh
fi
NOTE: To have the colors shown by 'git status' match the Default_Arch theme,
add the following to your ~/.gitconfig:
[color \"status\"]
branch = magenta
untracked = cyan
unmerged = yellow
And if you want boilerplate to be less prominent, also:
header = bold black
"
}
post_remove() {
echo "bash-git-prompt
NOTE: Any already running shells that were using bash-git-prompt will give a
bunch of errors with every new prompt line, until you start new shells
by doing one of the following:
* Restarting your shells (relogging in each of them)
* Starting new shells (running \"bash\" in each of them)
* Rebooting
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"
}
|