# vi: ft=zsh export HIST_STAMPS="yyyy-mm-dd" export HISTSIZE=999999999 export SAVEHIST=$HISTSIZE export HISTFILE=~/.zsh_history export ZPLUGINS=~/.config/zplugins setopt histignorealldups sharehistory interactivecomments extended_history # Use emacs keybindings even if our EDITOR is set to vi bindkey -e # clone antidote if necessary and generate a static plugin file zhome=${ZDOTDIR:-$HOME} export ZSHRCD="$zhome/.zshrc.d" export ZFUNCDIR="$XDG_CONFIG_HOME/zsh/functions" if [[ ! $zhome/.zsh_plugins.zsh -nt $zhome/.zsh_plugins.txt ]]; then [[ -e $zhome/.antidote ]] || git clone --depth=1 https://github.com/mattmc3/antidote.git $zhome/.antidote [[ -e $zhome/.zsh_plugins.txt ]] || touch $zhome/.zsh_plugins.txt ( source $zhome/.antidote/antidote.zsh envsubst <$zhome/.zsh_plugins.txt | antidote bundle >$zhome/.zsh_plugins.zsh ) fi # uncomment if you want your session to have commands like `antidote update` autoload -Uz $zhome/.antidote/functions/antidote # source static plugins file source $zhome/.zsh_plugins.zsh unset zhome # Set up the prompt autoload -Uz promptinit promptinit prompt pure