update prompt

This commit is contained in:
ole
2022-05-26 21:23:37 +02:00
parent 7ea47678db
commit 5273f25a5f

5
.zshrc
View File

@@ -53,7 +53,7 @@ setopt hist_expire_dups_first # delete duplicates first when HISTFILE size excee
setopt hist_ignore_dups # ignore duplicated commands history list setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space setopt hist_ignore_space # ignore commands that start with space
setopt hist_verify # show command with history expansion to user before running it setopt hist_verify # show command with history expansion to user before running it
#setopt share_history # share command history data setopt share_history # share command history data
# force zsh to show the complete history # force zsh to show the complete history
alias history="history 0" alias history="history 0"
@@ -91,7 +91,8 @@ if [ -n "$force_color_prompt" ]; then
fi fi
configure_prompt() { configure_prompt() {
PROMPT=' %(?.%B%F{blue}🐢.%F{red}?%?)%f %B%F{240}%1~%f%b ' PROMPT=" 🐢 %F{240}%~%f "
RPROMPT="%T - %?"
# prompt_symbol=@ # prompt_symbol=@
# [ "$EUID" -eq 0 ] && prompt_symbol=@ # [ "$EUID" -eq 0 ] && prompt_symbol=@
# case "$PROMPT_ALTERNATIVE" in # case "$PROMPT_ALTERNATIVE" in