summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent <kent@sadbeast.com>2021-09-20 13:57:58 -0500
committerKent <kent@sadbeast.com>2021-09-20 13:57:58 -0500
commitfffa77d5318813fe23158a79fc10c9d08cadd394 (patch)
tree30001e7b3eea112803082ca95c94545b02496757
parent66ff0b50fb0a29daeb36dc1532201ab22eb7e28f (diff)
downloadcfg-fffa77d5318813fe23158a79fc10c9d08cadd394.tar.gz
cfg-fffa77d5318813fe23158a79fc10c9d08cadd394.tar.bz2
add zshrc.local support, remove weird bindkeys
-rw-r--r--.zshrc19
1 files changed, 3 insertions, 16 deletions
diff --git a/.zshrc b/.zshrc
index 62b3f8b..e72a693 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,6 +1,5 @@
# antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
-export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
-export PATH="$PATH:~/bin:$HOME/.cargo/bin:$GEM_HOME/bin"
+export PATH="$PATH:$HOME/bin"
autoload -Uz compinit
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)
@@ -21,18 +20,10 @@ setopt hist_reduce_blanks # remove superfluous blanks from history items
setopt inc_append_history # save history entries as soon as they are entered
setopt share_history # share history between different instances of the shell
setopt auto_cd # cd by typing directory name if it's not a command
-setopt correct_all # autocorrect commands
setopt auto_list # automatically list choices on ambiguous completion
setopt auto_menu # automatically use menu completion
setopt always_to_end # move cursor to end if word had one match
-zstyle ':completion:*' menu select # select completions with arrow keys
-zstyle ':completion:*' group-name '' # group results by category
-zstyle ':completion:::::' completer _expand _complete _ignored _approximate # enable approximate matches for completion
-
-bindkey '^[[3~' delete-char
-bindkey '^[3;5~' delete-char
-
export NVM_LAZY_LOAD=true
export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim')
@@ -46,12 +37,6 @@ source ~/.zsh_plugins.sh
[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh
[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh
-bindkey '^[[A' history-substring-search-up
-bindkey '^[[B' history-substring-search-down
-bindkey "${terminfo[khome]}" beginning-of-line
-bindkey "${terminfo[kend]}" end-of-line
-bindkey "${terminfo[kdch1]}" delete-char
-
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
eval $(keychain --eval --quiet id_rsa)
@@ -61,3 +46,5 @@ case $(uname -a) in
esac
eval "$(starship init zsh)"
+
+[ -f $HOME/.zshrc.local ] && source $HOME/.zshrc.local