diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-15 02:12:32 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-07-15 02:12:32 -0400 |
commit | c7a8dfa19beabce1a33d8567d235fa064af8cf9d (patch) | |
tree | dda32b85d0898a276806899c06691c6ac7669560 /zshrc | |
parent | 3446e4d81d45ff5f9ff42d183c85a25d65aa4018 (diff) | |
download | conf-c7a8dfa19beabce1a33d8567d235fa064af8cf9d.tar.gz conf-c7a8dfa19beabce1a33d8567d235fa064af8cf9d.zip |
switch to starship
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -79,24 +79,9 @@ source ~/.vim/pack/plugins/start/history-sync/sh/history-sync.zsh # }}} # }}} # prompt {{{ -if type fancy-prompt > /dev/null 2>&1; then - function shell_prompt_precmd () { - PROMPT=`fancy-prompt --prompt-escape zsh $?` - RPS1='' - } - precmd_functions+=(shell_prompt_precmd) +if type starship > /dev/null 2>&1; then + eval "$(starship init zsh)" fi -function zle-keymap-select () { - setopt localoptions no_ksharrays - { [[ "${@[2]-main}" == opp ]] } && return - if [[ "x$KEYMAP" == 'xmain' ]]; then - RPS1='' - else - RPS1="%{$fg_bold[yellow]%}[${KEYMAP/vicmd/NORMAL}]%{$reset_color%}" - fi - zle reset-prompt -} -zle -N zle-keymap-select # }}} # }}} # fortune {{{ |