From 2d8ca280c9db6cba94d7110e18604e5754e326a0 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 14 Jan 2018 18:12:08 +0100 Subject: [bash] Set different color for prompt in SSH --- bash/.bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bash/.bashrc') 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 -- cgit v1.2.3