if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ]; then source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" fi ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;&' ZSH_COMPDUMP="$XDG_CACHE_HOME"/zsh/zcompdump-"$HOST-$ZSH_VERSION" zmodload zsh/complist autoload -U compinit && compinit -d $ZSH_COMPDUMP autoload -U colors && colors autoload -U edit-command-line zstyle ':completion:*' menu select zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33 zstyle ':completion:*' squeeze-slashes false setopt EXTENDED_HISTORY setopt INC_APPEND_HISTORY setopt SHARE_HISTORY setopt HIST_SAVE_NO_DUPS setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_SPACE setopt globdots setopt menu_complete setopt no_case_glob setopt no_case_match setopt interactive_comments bindkey -v bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'j' vi-down-line-or-history bindkey -M menuselect 'l' vi-forward-char bindkey -M vicmd '^e' edit-command-line bindkey -M vicmd '^[[P' vi-delete-char bindkey -M visual '^[[P' vi-delete bindkey '^E' edit-command-line bindkey "^H" backward-delete-char bindkey "^?" backward-delete-char bindkey "^R" history-incremental-search-backward bindkey "^S" history-incremental-search-forward bindkey "^[[A" history-search-backward bindkey "^[[B" history-search-forward bindkey '^[[P' delete-char stty stop undef zle-keymap-select () { case $KEYMAP in vicmd) echo -ne '\e[1 q';; viins|main) echo -ne '\e[5 q';; esac } zle-line-init() { zle -K viins; echo -ne "\e[5 q" } zle-line-finish () { echoti rmkx } bracketed-paste() { zle .$WIDGET && LBUFFER=${LBUFFER%$'\n'} } zle -N edit-command-line zle -N zle-keymap-select zle -N zle-line-init zle -N zle-line-finish zle -N bracketed-paste eval "$(starship init zsh)"