diff --git a/home/.config/sh/theme b/home/.config/sh/theme index f779bba..6bef957 100755 --- a/home/.config/sh/theme +++ b/home/.config/sh/theme @@ -4,10 +4,10 @@ export PROMPT_EOL_MARK="" # Color definition -GRAY="%F{237}" +GREEN="%F{047}" RED="%F{196}" ORANGE="%F{214}" -BLUE="%F{032}" +BLUE="%F{027}" LBLUE="%F{075}" PURPLE="%F{105}" RESET="%f" @@ -21,12 +21,12 @@ git_prompt() { fi } - setopt promptsubst # enable command substitution in prompt # Primary Prompt -[ "$EUID" -eq 0 ] && PS1="$RED%n@%m$RESET" || PS1="$GRAY%n@%m$RESET" # user@machine -PS1+=" $BLUE%~" # Working directory +[ "$EUID" -eq 0 ] && PS1="$RED%n$RESET" || PS1="$GREEN%n$RESET" # user@machine +#PS1+=" $BLUE%~" # Working directory, no autotrim +PS1+=" $BLUE%(5~|%-1~/…/%3~|%4~)" # Working directory + autotrim PS1+="\$(git_prompt)" PS1+=" $PURPLE%(!.#.»)$RESET " # Final symbol (# or »)