aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 19:50:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 19:50:50 +1200
commit1c6e451de2956d231563777ade549502bbda270a (patch)
tree9c92a3f78f4ce5869dae624f4825d688fe99759d /bash
parentNeed to massage version information with PE (diff)
downloaddotfiles-1c6e451de2956d231563777ade549502bbda270a.tar.gz
dotfiles-1c6e451de2956d231563777ade549502bbda270a.zip
Print Bash version in color at prompt on
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_profile3
-rw-r--r--bash/bashrc.d/prompt.bash3
2 files changed, 3 insertions, 3 deletions
diff --git a/bash/bash_profile b/bash/bash_profile
index 526e7f3b..e23ec458 100644
--- a/bash/bash_profile
+++ b/bash/bash_profile
@@ -13,6 +13,3 @@ if [[ -r $HOME/.bashrc ]]; then
source "$HOME"/.bashrc
fi
-# Print Bash version
-printf 'bash: %s\n' "$BASH_VERSION"
-
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index c4293aae..0e96a82f 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -35,6 +35,9 @@ prompt() {
# String it all together
PS1='\['"$format"'\]'"$PS1"'\['"$reset"'\] '
+
+ # Print the Bash version number to the terminal
+ printf '%sbash:%s%s\n' "$format" "$BASH_VERSION" "$reset"
;;
# Revert to simple inexpensive prompt