this repo has no description
at main 38 lines 1.1 kB view raw
1# vi: ft=zsh 2export HIST_STAMPS="yyyy-mm-dd" 3export HISTSIZE=999999999 4export SAVEHIST=$HISTSIZE 5export HISTFILE=~/.zsh_history 6export ZPLUGINS=~/.config/zplugins 7setopt histignorealldups sharehistory interactivecomments extended_history 8 9# Use emacs keybindings even if our EDITOR is set to vi 10bindkey -e 11 12# clone antidote if necessary and generate a static plugin file 13zhome=${ZDOTDIR:-$HOME} 14 15export ZSHRCD="$zhome/.zshrc.d" 16export ZFUNCDIR="$XDG_CONFIG_HOME/zsh/functions" 17 18if [[ ! $zhome/.zsh_plugins.zsh -nt $zhome/.zsh_plugins.txt ]]; then 19 [[ -e $zhome/.antidote ]] || 20 git clone --depth=1 https://github.com/mattmc3/antidote.git $zhome/.antidote 21 [[ -e $zhome/.zsh_plugins.txt ]] || touch $zhome/.zsh_plugins.txt 22 ( 23 source $zhome/.antidote/antidote.zsh 24 envsubst <$zhome/.zsh_plugins.txt | antidote bundle >$zhome/.zsh_plugins.zsh 25 ) 26fi 27 28# uncomment if you want your session to have commands like `antidote update` 29autoload -Uz $zhome/.antidote/functions/antidote 30 31# source static plugins file 32source $zhome/.zsh_plugins.zsh 33unset zhome 34 35# Set up the prompt 36autoload -Uz promptinit 37promptinit 38prompt pure