summarylogtreecommitdiffstats
path: root/bash-git-prompt.install
diff options
context:
space:
mode:
Diffstat (limited to 'bash-git-prompt.install')
-rw-r--r--bash-git-prompt.install30
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
+
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+"
+}