diff options
author | zachir <zachir@librem.one> | 2023-02-20 16:22:28 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-20 16:22:28 -0600 |
commit | 763c1f5433c3b9e04cd616eecac5341794396e68 (patch) | |
tree | bf436660da16fa4aac988ef8ee050758b6eebf47 /zsh/.zshrc | |
parent | 4a94bdea5184ba2ffe695757bc947823e59e98b0 (diff) |
change zshrc prompt
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r-- | zsh/.zshrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -36,13 +36,13 @@ if [ "$TERM" = "st-256color" ] || [ "$TERM" = "xterm-256color" ]; then zle -N zle-line-finish fi -which pacman >/dev/null && COLOR1="cyan" -which apt >/dev/null && COLOR1="green" -which syspatch >/dev/null && COLOR1="red" +which pacman >/dev/null && COLOR1="014" +which apt >/dev/null && COLOR1="010" +which syspatch >/dev/null && COLOR1="009" -MYPROMPT='%B%F{'"$COLOR1"'}[%n@%m]:%f%F{white}%~%f%F{'"$COLOR1"'}%#%f%b ' +MYPROMPT='%B%S%F{'"$COLOR1"'}[%n@%m]:%f%s%F{015}%~%f%S%F{'"$COLOR1"'}%#%f%s%b ' function zle-line-init zle-keymap-select { - VIM_PROMPT="%B%F{blue}[%n@%m]:%f%F{white}%~%f%F{blue}%#%f%b " + VIM_PROMPT="%B%F{012}[%n@%m]:%f%F{015}%~%f%F{012}%#%f%b " PS1="${${KEYMAP/vicmd/$VIM_PROMPT}/main/$MYPROMPT}" #PS1="$PROMPT $KEYMAP" zle reset-prompt |