# ~/.zshrc # # ALIASES [[ ! -f ~/.zsh_aliases ]] || source ~/.zsh_aliases # On Arch Linux, source pkgfile "command not found" hook [[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh # HISTORY SEARCH HISTSIZE=10000 SAVEHIST=10000 HISTFILE=~/.zhistory # Make history search only start with what is typed autoload -Uz up-line-or-beginning-search down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search bindkey -M vicmd "k" up-line-or-beginning-search bindkey -M vicmd "j" down-line-or-beginning-search # COMPLETION autoload -Uz compinit zstyle ':completion:*' menu select zmodload zsh/complist compinit setopt COMPLETE_ALIASES # Use vim keys in tab complete menu bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'j' vi-down-line-or-history bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char bindkey -v '^?' backward-delete-char # VI MODE # Use 'jk' instead of Escape to switch to NORMAL mode: VIM_MODE_VICMD_KEY='jk' # Mode-sensitive cursor styling: MODE_CURSOR_VIINS="#cccccc blinking bar" MODE_CURSOR_VICMD="#cccccc block" MODE_CURSOR_REPLACE="#cccccc steady underline" MODE_CURSOR_VISUAL="$MODE_CURSOR_VICMD steady bar" MODE_CURSOR_VLINE="$MODE_CURSOR_VISUAL #00ffff" # Finally load the vim plugin: source "$HOME/github_dotfiles/zsh-vim-mode/zsh-vim-mode.plugin.zsh" # HELP COMMAND autoload -Uz run-help unalias run-help alias help=run-help # PROMPT source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # SYNTAX HIGHLIGHTING AND AUTOSUGGESTIONS source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # The following line MUST be at the end of this file! source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh