Created
October 25, 2016 14:55
-
-
Save 1syo/34b15e926acd241f8ba27571c191ca27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://github.com/robbyrussell/oh-my-zsh/blob/3705d47bb3f3229234cba992320eadc97a221caf/lib/prompt_info_functions.zsh