Update README

This commit is contained in:
Junegunn Choi
2014-01-14 16:51:52 +09:00
parent 79f645aa6c
commit 13cb198b5c
2 changed files with 9 additions and 64 deletions

View File

@@ -90,7 +90,7 @@ EOF
bind '"\er": redraw-current-line'
# CTRL-T - Paste the selected file path into the command line
fsel() {
__fsel() {
find * -path '*/\.*' -prune \
-o -type f -print \
-o -type l -print 2> /dev/null | fzf -m | while read item; do
@@ -98,7 +98,7 @@ fsel() {
done
echo
}
bind '"\C-t": " \C-u \C-a\C-k$(fsel)\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er"'
bind '"\C-t": " \C-u \C-a\C-k$(__fsel)\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er"'
# CTRL-R - Paste the selected command from history into the command line
bind '"\C-r": " \C-e\C-u$(history | fzf +s | sed \"s/ *[0-9]* *//\")\e\C-e\er"'