diff options
author | David Runge <dave@sleepmap.de> | 2021-09-28 19:20:46 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2021-09-28 19:20:46 +0200 |
commit | 1d4e03ca820d2ac6d57652ab00b45a848b494caf (patch) | |
tree | 9096be226954e712a034c7ad11ce40e0bf50322c /.zsh.prompts/prompt_kylewest_setup | |
parent | 6f9e49339221d1da97d5bbceee4856a4e81f530f (diff) | |
download | dotfiles-1d4e03ca820d2ac6d57652ab00b45a848b494caf.tar.gz dotfiles-1d4e03ca820d2ac6d57652ab00b45a848b494caf.tar.bz2 dotfiles-1d4e03ca820d2ac6d57652ab00b45a848b494caf.tar.xz dotfiles-1d4e03ca820d2ac6d57652ab00b45a848b494caf.zip |
zsh: Remove custom ZSH prompts
Remove loading of custom prompts in .zsh.prompts/* as they are very slow
and there are far better cross-shell alternatives such as starship.
Diffstat (limited to '.zsh.prompts/prompt_kylewest_setup')
-rw-r--r-- | .zsh.prompts/prompt_kylewest_setup | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/.zsh.prompts/prompt_kylewest_setup b/.zsh.prompts/prompt_kylewest_setup deleted file mode 100644 index c67b5e4..0000000 --- a/.zsh.prompts/prompt_kylewest_setup +++ /dev/null @@ -1,57 +0,0 @@ -# -# A theme based on sorin theme -# * ruby info shown on the right -# * git info on the left -# * editor mode as $> or <# -# * single line prompt -# -# Authors: -# Sorin Ionescu <sorin.ionescu@gmail.com> -# Kyle West <kswest@gmail.com> - -function prompt_kylewest_precmd { - setopt LOCAL_OPTIONS - unsetopt XTRACE KSH_ARRAYS - - # Get Git repository information. - if (( $+functions[git-info] )); then - git-info on - git-info - fi - - # Get ruby information - if (( $+functions[ruby-info] )); then - ruby-info - fi -} - -function prompt_kylewest_setup { - setopt LOCAL_OPTIONS - unsetopt XTRACE KSH_ARRAYS - prompt_opts=(cr percent subst) - - # Load required functions. - autoload -Uz add-zsh-hook - - # Add hook for calling git-info before each command. - add-zsh-hook precmd prompt_kylewest_precmd - - # editor - zstyle ':prezto:module:editor:info:completing' format '%B%F{red}...%f%b' - zstyle ':prezto:module:editor:info:keymap:primary' format "%B%F{green}$>%f%b" - zstyle ':prezto:module:editor:info:keymap:alternate' format "%B%F{magenta}<#%f%b" - - # ruby info (rvm, rbenv) - zstyle ':prezto:module:ruby:info:version' format '[ %v ]' - - # vcs - zstyle ':prezto:module:git:info:branch' format '%F{yellow}%b%f' - zstyle ':prezto:module:git:info:dirty' format '%B%F{red}!%f%b' - zstyle ':prezto:module:git:info:keys' format 'prompt' '- %b%D ' - - # prompts - PROMPT='%F{cyan}%c%f ${git_info[prompt]}${editor_info[keymap]} ' - RPROMPT='%F{blue}${ruby_info[version]}' -} - -prompt_kylewest_setup "$@" |