mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Improve theme
This commit is contained in:
parent
0a1b8c1c41
commit
5e93de8f93
|
@ -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 »)
|
||||
|
||||
|
|
Loading…
Reference in a new issue