summaryrefslogtreecommitdiff
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-03-15 11:02:07 +0000
committerUrbain Vaes <urbain@vaes.uk>2018-03-15 11:02:07 +0000
commit137cf65e27da3b06b2e5903302126bf5b10d9943 (patch)
tree89101ce302edb00c8917ea17ed44a2bf8fb65e3b /bash/.bashrc
parentd161d11682989d18f5ec994428028afae4a122d7 (diff)
Show hostname in prompt in ssh
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 387b5d6..9f4e80d 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,6 +1,6 @@
# Prompt
if [[ -n $SSH_CLIENT ]]; then
- PS1=$'\w \e[0;31m$\e[0m '
+ PS1=$'\e[0;31m[\h]\e[0m \w $ '
else
PS1='\w $ '
fi