From e52a1d5fada7c6b232190c9f996f386f8494a932 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 18 Nov 2013 17:36:54 +0900 Subject: [PATCH] Update bash example --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 3413242e..430e82fc 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,14 @@ fda() { DIR=$(find ${1:-*} -type d 2> /dev/null | fzf) && cd "$DIR" } +# fsel - Select multiple files in the given path +fsel() { + find ${1:-*} | fzf -m | while read item; do + echo -n "\"$item\" " + done + echo +} + # fh - repeat history fh() { eval $(history | fzf +s | sed 's/ *[0-9]* *//')