Created
July 9, 2014 07:23
-
-
Save hisaichi5518/1273f4ead3b37a1b558d 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
function peco-src() { | |
local selected_dir=$(ghq list --full-path | peco --query "$LBUFFER") | |
if [ -n "$selected_dir" ]; then | |
cd ${selected_dir} | |
fi | |
} | |
zle -N peco-src | |
bindkey '^S' peco-src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment