diff options
author | James Harvey | 2015-08-02 00:09:27 +0000 |
---|---|---|
committer | James Harvey | 2015-08-02 00:09:27 +0000 |
commit | 5562ed531aff4752ce870655f1f32508a6760ffc (patch) | |
tree | 85d70a355499ba1f6ee653bd9c7197093c5e179f /bash-git-prompt.install | |
download | aur-5562ed531aff4752ce870655f1f32508a6760ffc.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 + + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +" +} |