mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Update theme
This commit is contained in:
parent
251b0e82d2
commit
51a193be98
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
# hide EOL sign ('%')
|
||||||
|
export PROMPT_EOL_MARK=""
|
||||||
|
|
||||||
# Color definition
|
# Color definition
|
||||||
GRAY="%F{237}"
|
GRAY="%F{237}"
|
||||||
RED="%F{196}"
|
RED="%F{196}"
|
||||||
|
@ -18,7 +21,8 @@ git_prompt() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setopt PROMPT_SUBST
|
|
||||||
|
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@%m$RESET" || PS1="$GRAY%n@%m$RESET" # user@machine
|
||||||
|
|
Loading…
Reference in a new issue