diff --git a/home/.config/sh/theme b/home/.config/sh/theme index cc822a9..73303c3 100755 --- a/home/.config/sh/theme +++ b/home/.config/sh/theme @@ -12,6 +12,7 @@ LBLUE="%F{075}" PURPLE="%F{105}" RESET="%f" +# Signals git status of CWD repository (if any) git_prompt() { ref=$(command git symbolic-ref HEAD 2> /dev/null) || ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0 echo -n " $ORANGE${ref#refs/heads/}" @@ -21,12 +22,23 @@ git_prompt() { fi } +# Adds @chroot or @ssh +foreign_prompt() { + if [ "$(awk '$5=="/" {print $1}'