mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +00:00
Improve theme
This commit is contained in:
parent
0a1b8c1c41
commit
5e93de8f93
|
@ -4,10 +4,10 @@
|
||||||
export PROMPT_EOL_MARK=""
|
export PROMPT_EOL_MARK=""
|
||||||
|
|
||||||
# Color definition
|
# Color definition
|
||||||
GRAY="%F{237}"
|
GREEN="%F{047}"
|
||||||
RED="%F{196}"
|
RED="%F{196}"
|
||||||
ORANGE="%F{214}"
|
ORANGE="%F{214}"
|
||||||
BLUE="%F{032}"
|
BLUE="%F{027}"
|
||||||
LBLUE="%F{075}"
|
LBLUE="%F{075}"
|
||||||
PURPLE="%F{105}"
|
PURPLE="%F{105}"
|
||||||
RESET="%f"
|
RESET="%f"
|
||||||
|
@ -21,12 +21,12 @@ git_prompt() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
setopt promptsubst # enable command substitution in prompt
|
setopt promptsubst # enable command substitution in prompt
|
||||||
|
|
||||||
# Primary Prompt
|
# Primary Prompt
|
||||||
[ "$EUID" -eq 0 ] && PS1="$RED%n@%m$RESET" || PS1="$GRAY%n@%m$RESET" # user@machine
|
[ "$EUID" -eq 0 ] && PS1="$RED%n$RESET" || PS1="$GREEN%n$RESET" # user@machine
|
||||||
PS1+=" $BLUE%~" # Working directory
|
#PS1+=" $BLUE%~" # Working directory, no autotrim
|
||||||
|
PS1+=" $BLUE%(5~|%-1~/…/%3~|%4~)" # Working directory + autotrim
|
||||||
PS1+="\$(git_prompt)"
|
PS1+="\$(git_prompt)"
|
||||||
PS1+=" $PURPLE%(!.#.»)$RESET " # Final symbol (# or »)
|
PS1+=" $PURPLE%(!.#.»)$RESET " # Final symbol (# or »)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue