Last active
June 25, 2016 02:44
-
-
Save hushin/7607aa862e753185a8cdfda5468c0097 to your computer and use it in GitHub Desktop.
This file contains 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
# agで検索 peco で絞り込み emacs で該当行を開く | |
# ファイル名にスペースが含まれていても動く | |
function ag-emacs(){ | |
local IFS=" | |
" | |
emacs $(ag "$@" | peco --query "$LBUFFER" | awk -F : '{print "+" $2 " " $1}') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment