summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-07-15 02:12:32 -0400
committerJesse Luehrs <doy@tozt.net>2023-07-15 02:12:32 -0400
commitc7a8dfa19beabce1a33d8567d235fa064af8cf9d (patch)
treedda32b85d0898a276806899c06691c6ac7669560 /zshrc
parent3446e4d81d45ff5f9ff42d183c85a25d65aa4018 (diff)
downloadconf-c7a8dfa19beabce1a33d8567d235fa064af8cf9d.tar.gz
conf-c7a8dfa19beabce1a33d8567d235fa064af8cf9d.zip
switch to starship
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc19
1 files changed, 2 insertions, 17 deletions
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 {{{