diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-01-14 18:12:08 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-01-14 18:12:08 +0100 |
commit | 2d8ca280c9db6cba94d7110e18604e5754e326a0 (patch) | |
tree | c41313e09137c393b18ee19d861cbcacf5a72eb2 /bash/.bashrc | |
parent | cf419b1cf66b2c3e970f1a0b1cc5881ffd1ad262 (diff) |
[bash] Set different color for prompt in SSH
Diffstat (limited to 'bash/.bashrc')
-rw-r--r-- | bash/.bashrc | 8 |
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 |