Improve theme

This commit is contained in:
ItsDrike 2021-04-14 20:40:33 +02:00
parent 0a1b8c1c41
commit 5e93de8f93
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -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 »)