diff --git a/runcoms/zshrc b/runcoms/zshrc index 039b882d..29e74665 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -11,3 +11,20 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then fi # Customize to your needs... + +eval "$(rbenv init -)" + +alias g='git' +alias bi='bundle install' +alias be='bundle exec' + +function peco-src () { + local selected_dir=$(ghq list -p | peco --query "$LBUFFER") + if [ -n "$selected_dir" ]; then + BUFFER="cd ${selected_dir}" + zle accept-line + fi + zle clear-screen +} +zle -N peco-src +bindkey '^]' peco-src