few additions to zshrc

This commit is contained in:
James Dixon 2022-08-01 20:03:05 -04:00
parent 838d8a8d07
commit 28d8953179

View File

@ -24,6 +24,7 @@ setopt append_history
setopt extended_history setopt extended_history
setopt inc_append_history setopt inc_append_history
setopt share_history setopt share_history
setopt histsavenodups
# Less Annoying # Less Annoying
setopt interactive_comments setopt interactive_comments
unsetopt correct_all unsetopt correct_all
@ -37,6 +38,10 @@ setopt prompt_subst
typeset -U path typeset -U path
# Set 'emacs' keybinds # Set 'emacs' keybinds
bindkey -e bindkey -e
bindkey '\e[3~' delete-char
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey ' ' magic-space
# * * * * * * # * * * * * *
## Aliases * ## Aliases *
@ -287,4 +292,6 @@ PATH="/opt/homebrew/opt/sqlite/bin:$PATH"
[ -r "$HOME/.config/zshrc" ] && source "$HOME/.config/zshrc" [ -r "$HOME/.config/zshrc" ] && source "$HOME/.config/zshrc"
[ -r "$HOME/.local/zshrc" ] && source "$HOME/.local/zshrc" [ -r "$HOME/.local/zshrc" ] && source "$HOME/.local/zshrc"
# ZSH syntax highlighting plugin
ZSH_SYNTAX_HIGHLIGHT_PATH="${HOMEBREW_PREFIX}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[ -f "$ZSH_SYNTAX_HIGHLIGHT_PATH" ] && source $ZSH_SYNTAX_HIGHLIGHT_PATH