summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-05 10:30:01 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-05 10:30:01 +0100
commitee4a279a639b9a3c543c0a72583a03a4395302b0 (patch)
tree08657303b5e0478fb282106288bd11b14d50049c
parentcc5260bddc1e8146bb6330298caf871edf0d4d75 (diff)
downloaddotfiles-ee4a279a639b9a3c543c0a72583a03a4395302b0.tar.xz
Add option for hostname display
-rw-r--r--.bashprompt6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bashprompt b/.bashprompt
index af2890e..49869fb 100644
--- a/.bashprompt
+++ b/.bashprompt
@@ -84,6 +84,12 @@ __set-prompt ()
fi
PS1+=$(__fontify '\u' green)
+
+ if [ ${PS1_SHOWHOSTNAME} ]
+ then
+ PS1+=$(__fontify '@\H' dim green)
+ fi
+
PS1+=$(__fontify : bold white)
PS1+=$(__fontify '\w' bold blue)
PS1+=$(__fontify "$(__git_ps1 '(%s)')" red)