From 034ad1ecf6326a42415792ee4c0e458e3ecf1b8e Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Tue, 11 Oct 2016 21:38:13 +0200 Subject: [PATCH] Display if we are connected through SSH --- themes/michelebologna.zsh-theme | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index 110e3f20..1c1ed277 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -51,6 +51,8 @@ local current_dir="%~" local username_output="%(!..$username_normal_color$username_command$reset@)" local hostname_output="$hostname_color$hostname_command$reset" +[[ $SSH_TTY ]] && hostname_output="$hostname_output ${red}(ssh)$reset" + local current_dir_output="$current_dir_color$current_dir$reset" local jobs_bg="${red}fg: %j$reset" local last_command_output="%(?.%(!.$red.$green).$yellow)"