Skip to content

Instantly share code, notes, and snippets.

@1syo
Created October 25, 2016 14:55
Show Gist options
  • Save 1syo/34b15e926acd241f8ba27571c191ca27 to your computer and use it in GitHub Desktop.
Save 1syo/34b15e926acd241f8ba27571c191ca27 to your computer and use it in GitHub Desktop.
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
function ruby_prompt_ifno {
if which rbenv > /dev/null; then
echo "$(rbenv version-name)"
else
echo "system"
fi
}
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"
zplug "plugins/git", from:oh-my-zsh
zplug "themes/gallois", from:oh-my-zsh
zplug "mollifier/anyframe"
zplug load
path=($HOME/.rbenv/shims(N-/) $path)
HISTSIZE=4096
SAVEHIST=4096
DIRSTACKSIZE=5
setopt hist_ignore_all_dups inc_append_history
setopt autocd autopushd pushdminus pushdsilent pushdtohome cdablevars
setopt extendedglob
unsetopt nomatch
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
bindkey '^R' history-incremental-pattern-search-backward
bindkey '^x^g' anyframe-widget-cd-ghq-repository
bindkey '^x^i' anyframe-widget-insert-git-branch
bindkey '^x^c' anyframe-widget-checkout-git-branch
bindkey '^x^k' anyframe-widget-kill
bindkey '^x^f' anyframe-widget-insert-filename
bindkey '^x^d' anyframe-widget-cdr
eval "$(rbenv init -)"
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment