Make transient prompt yellow on remote systems
This commit is contained in:
parent
2828ce7b4e
commit
c588d158ef
1 changed files with 5 additions and 1 deletions
6
.zshrc
6
.zshrc
|
@ -38,7 +38,11 @@ _prompt () {
|
|||
|
||||
# Echo compact prompt
|
||||
if (( $_prompt_compact )); then
|
||||
echo "\e[1;30;42m `date +%H:%M:%S` \e[32;40m\e[0m "
|
||||
if [ -z "$SSH_CLIENT" ] && [ -z "$SSH_TTY" ]; then
|
||||
echo "\e[1;30;42m `date +%H:%M:%S` \e[32;40m\e[0m "
|
||||
else
|
||||
echo "\e[1;30;43m `date +%H:%M:%S` \e[33;40m\e[0m "
|
||||
fi
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue