Commit 97122ca2ef73620cace8e4629bcea795dbd7776b Parent: 6f26a2c35833921961242ce9c74ee41a3da16036 Author: mcol <mcol@posteo.net> Date: 2019-02-09 13:15:56 +0000 Committer: mcol <mcol@posteo.net> Committed: 2019-02-09 13:15:56 +0000 ban thene
themes/ban.zsh-theme Modified
@@ -124,16 +124,22 @@ } +if $is_ssh +then + tmux_following_colour=green +else + tmux_following_colour=magenta +fi prompt_tmux() { local tmux_indicator + local SEGMENT_SEPARATOR='' if [[ -n "$TMUX" ]] then - prompt_segment 11 magenta '' - SEGMENT_SEPARATOR=$'\ue0b0' prompt_segment magenta 11 '' + tmux_indicator=$'\ue0b0' else - prompt_segment black magenta '' - SEGMENT_SEPARATOR='' prompt_segment magenta 11 '' + tmux_indicator='' fi + [[ -n "$tmux_indicator" ]] && prompt_segment $tmux_following_colour 11 "$tmux_indicator" }