2021-07-01 21:42:48 -04:00
|
|
|
# `.zshrc' is sourced in interactive shells. It should contain
|
|
|
|
# commands to set up aliases, functions, options, key bindings, etc.
|
|
|
|
|
|
|
|
autoload -U colors && colors
|
|
|
|
|
2021-07-01 22:39:39 -04:00
|
|
|
setopt auto_cd
|
|
|
|
|
2021-07-01 21:42:48 -04:00
|
|
|
HISTSIZE=10000
|
|
|
|
SAVEHIST=10000
|
|
|
|
HISTFILE=$XDG_CACHE_HOME/zshhistory
|
|
|
|
|
|
|
|
autoload -U compinit
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
zmodload zsh/complist
|
|
|
|
compinit
|
|
|
|
_comp_options+=(globdots) # include hidden files
|
|
|
|
|
|
|
|
echo "Hi"
|
|
|
|
|
|
|
|
# edit line in editor w/ ctrl-e (from Luke Smith's .zshrc)
|
|
|
|
autoload edit-command-line; zle -N edit-command-line
|
|
|
|
bindkey '^e' edit-command-line
|
|
|
|
|
2021-07-01 22:39:39 -04:00
|
|
|
bindkey "^[[1;5C" forward-word
|
|
|
|
bindkey "^[[1;5D" backward-word
|
|
|
|
|
2021-07-01 21:42:48 -04:00
|
|
|
[ -f "$E_SCRIPTS_DIR/aliases.sh" ] && source "$E_SCRIPTS_DIR/aliases.sh"
|
|
|
|
|
|
|
|
# Run `git -C .config/zsh/autocomplete pull' to update
|
|
|
|
source $ZDOTDIR/autocomplete/zsh-autocomplete.plugin.zsh
|
2021-07-01 22:39:39 -04:00
|
|
|
zstyle ':autocomplete:*' min-input 1
|
|
|
|
zstyle ':autocomplete:*' min-delay 0.25
|
2021-07-01 21:42:48 -04:00
|
|
|
|
|
|
|
# This must be placed at the end
|
|
|
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|