diff options
author | James Harvey | 2015-08-01 23:53:00 +0000 |
---|---|---|
committer | James Harvey | 2015-08-01 23:53:00 +0000 |
commit | 4e7e5395a3d6448e71d0e6af40a31a019441f781 (patch) | |
tree | c0398f0bdbeeb5b0109bee0d1e22bbbfd93d1d4d /bash-git-prompt.install | |
download | aur-4e7e5395a3d6448e71d0e6af40a31a019441f781.tar.gz |
Initial import
Diffstat (limited to 'bash-git-prompt.install')
-rw-r--r-- | bash-git-prompt.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bash-git-prompt.install b/bash-git-prompt.install new file mode 100644 index 000000000000..9596c0fe74cd --- /dev/null +++ b/bash-git-prompt.install @@ -0,0 +1,30 @@ +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 + # GIT_PROMPT_ONLY_IN_REPO=1 + GIT_PROMPT_THEME=Default + source /usr/lib/bash-git-prompt/gitprompt.sh + fi + +" +} + +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 + + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +" +} |