summaryrefslogtreecommitdiff
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-01-14 18:12:08 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-01-14 18:12:08 +0100
commit2d8ca280c9db6cba94d7110e18604e5754e326a0 (patch)
treec41313e09137c393b18ee19d861cbcacf5a72eb2 /bash/.bashrc
parentcf419b1cf66b2c3e970f1a0b1cc5881ffd1ad262 (diff)
[bash] Set different color for prompt in SSH
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 76d8d48..0e8ede6 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,5 +1,11 @@
# Prompt
-PS1='\w $ '
+
+if [[ -n $SSH_CLIENT ]]; then
+ PS1=$'\w\e[0;31m$ \e[0m'
+else
+ PS1='\w $ '
+fi
+
# FZF
[ -f ~/.fzf.bash ] && source ~/.fzf.bash