From 17b7cd59b2849c6f35562b77d8090623b9b5d969 Mon Sep 17 00:00:00 2001 From: takiy33 Date: Sun, 10 Jul 2016 10:34:13 +0900 Subject: [PATCH] Add my settings --- runcoms/zshrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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