From b636c92631cad3b2d3add4d99554a5d3fc9f5479 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 5 Sep 2020 19:11:03 +0200 Subject: [PATCH] Tidy up a bit --- dotfiles/zsh/zshrc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index d886f13..8637f49 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -1,14 +1,12 @@ # ~/.zshrc # - stty stop undef # Disable ctrl-s to freeze terminal setopt interactivecomments # Add comments to command line as in Bash -autoload -U colors && colors +autoload -U colors && colors # Necessary for SPROMPT setopt correct export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [Yes, No, Abort, Edit] " - # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -16,15 +14,12 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi - # 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 @@ -36,7 +31,6 @@ 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 @@ -54,10 +48,8 @@ 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' +VIM_MODE_VICMD_KEY='jk' # Use 'jk' instead of Escape to switch to NORMAL mode: # Mode-sensitive cursor styling: MODE_CURSOR_VIINS="#cccccc blinking bar" MODE_CURSOR_VICMD="#cccccc block" @@ -67,7 +59,6 @@ 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 # By default in zsh, run-help is an alias to man, which is useless. # Here we load the zsh run-help function and name it help, just like in bash. @@ -77,13 +68,11 @@ fi autoload -Uz 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!