2015-06-19 07:04:48 -07:00
|
|
|
### zshrc
|
|
|
|
# By Henrik Lissner <henrik@lissner.net>
|
|
|
|
# Uses zgen to manage plugins
|
2015-01-20 00:00:13 -08:00
|
|
|
|
2015-11-20 02:08:05 -08:00
|
|
|
DOTFILES=$HOME/.dotfiles
|
|
|
|
|
|
|
|
source $DOTFILES/zsh/functions.zsh
|
2015-06-19 07:04:48 -07:00
|
|
|
|
|
|
|
# if not running through emacs' shell-command
|
2015-11-20 02:08:05 -08:00
|
|
|
if [ ! $TERM = dumb ]; then
|
|
|
|
ZGEN_AUTOLOAD_COMPINIT=true
|
|
|
|
if [[ "${USER}" == "root" ]]; then
|
|
|
|
ZGEN_AUTOLOAD_COMPINIT=false
|
|
|
|
fi
|
|
|
|
|
2015-06-18 13:16:54 -07:00
|
|
|
source ~/.zsh/zgen/zgen.zsh
|
|
|
|
if ! zgen saved; then
|
|
|
|
echo "Creating zgen save"
|
2015-06-19 07:04:48 -07:00
|
|
|
|
2015-06-18 13:16:54 -07:00
|
|
|
zgen load zsh-users/zsh-history-substring-search
|
|
|
|
zgen load zsh-users/zsh-completions src
|
|
|
|
zgen load Tarrasch/zsh-bd
|
2015-12-10 02:38:44 -08:00
|
|
|
zgen load willghatch/zsh-hooks
|
2015-12-09 16:03:41 -08:00
|
|
|
zgen load hlissner/zsh-autopair
|
2015-12-08 22:49:16 -08:00
|
|
|
[[ "$SSH_CONNECTION" == '' ]] && zgen load zsh-users/zsh-syntax-highlighting
|
2015-06-19 07:04:48 -07:00
|
|
|
|
2015-11-20 02:08:05 -08:00
|
|
|
zgen load $DOTFILES/zsh/config.zsh
|
|
|
|
zgen load $DOTFILES/zsh/completion.zsh
|
|
|
|
zgen load $DOTFILES/zsh/keybinds.zsh
|
|
|
|
zgen load $DOTFILES/zsh/prompt.zsh
|
|
|
|
|
2015-06-18 13:16:54 -07:00
|
|
|
zgen save
|
|
|
|
fi
|
2015-06-19 07:04:48 -07:00
|
|
|
|
|
|
|
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
|
2014-12-13 16:33:21 -08:00
|
|
|
fi
|
2015-01-20 00:00:13 -08:00
|
|
|
|
2015-12-08 22:12:30 -08:00
|
|
|
source $DOTFILES/zsh/aliases.zsh
|
|
|
|
|
2015-09-26 12:28:42 -07:00
|
|
|
cache rbenv init - --no-rehash
|
|
|
|
cache pyenv init - --no-rehash
|
2015-05-07 12:16:04 -07:00
|
|
|
|
2015-06-19 07:03:05 -07:00
|
|
|
# Done!
|