helm/zshrc

48 lines
1.3 KiB
Bash
Raw Normal View History

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
2015-12-17 02:32:03 -08:00
ZSH_CACHE_DIR="$HOME/.zsh/cache/$(hostname)"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
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
2015-12-17 02:32:03 -08:00
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
2015-11-20 02:08:05 -08:00
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
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-17 02:32:03 -08:00
zgen load StackExchange/blackbox
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-12-17 02:32:03 -08:00
zgen load zsh-users/zsh-completions src
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-11-20 02:08:05 -08:00
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
2015-12-17 02:32:03 -08:00
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_DEFAULT_OPTS='--reverse --inline-info'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
2014-12-13 16:33:21 -08:00
fi
2015-01-20 00:00:13 -08:00
2015-12-17 02:32:03 -08:00
source "$DOTFILES/zsh/aliases.zsh"
2015-12-08 22:12:30 -08: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!