summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorKent Smith <smitkent@isu.edu>2019-06-07 10:51:28 -0600
committerKent Smith <smitkent@isu.edu>2019-06-07 10:51:28 -0600
commitea50f7d3e04c01aea08a31b9acdb6109b5e9a8fd (patch)
tree919e4ec3df2a00276edf276215a81861014a9f7e /.zshrc
downloadcfg-ea50f7d3e04c01aea08a31b9acdb6109b5e9a8fd.tar.gz
cfg-ea50f7d3e04c01aea08a31b9acdb6109b5e9a8fd.tar.bz2
initial commit
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc50
1 files changed, 50 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
new file mode 100644
index 0000000..1816249
--- /dev/null
+++ b/.zshrc
@@ -0,0 +1,50 @@
+# antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
+
+export PATH=$PATH:~/bin:$HOME/.cargo/bin
+autoload -Uz compinit
+
+typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)
+if [ $(date +'%j') != $updated_at ]; then
+ compinit -i
+else
+ compinit -C -i
+fi
+
+zmodload -i zsh/complist
+
+HISTFILE=$HOME/.zsh_history
+HISTSIZE=100000
+SAVEHIST=$HISTSIZE
+
+setopt hist_ignore_all_dups # remove older duplicate entries from history
+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 FZF_DEFAULT_COMMAND='fd --type file'
+export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
+
+source ~/.zsh_plugins.sh
+
+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)