From c7a8dfa19beabce1a33d8567d235fa064af8cf9d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 15 Jul 2023 02:12:32 -0400 Subject: switch to starship --- zshrc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 31819a7..2fa8d52 100644 --- a/zshrc +++ b/zshrc @@ -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 {{{ -- cgit v1.2.3-54-g00ecf