commit 38038ab9b4706c3d991191c18db8ab850234739e
parent 49d36cb23d5a537b0e2eefd5d76864542f1fbe29
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 22 Jun 2020 12:04:57 +0200
shell: config find fzf function
Former-commit-id: a286ba883c76c21e2dad082a4bce00d6ffd1923e
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/shell/functions b/shell/functions
@@ -117,6 +117,14 @@ if [ -f ~/.fzf.zsh ] || [ -f ~/.fzf.bash ]; then
IFS=$'\n' files=($(command find ~/.dotfiles -type f ! -ipath "*/.git/*" ! -ipath "*/bin/*" ! -ipath "*/oh-my-zsh/*" ! -name ".DS_Store" | fzf -m --inline-info --prompt="edit> " --height=40 --reverse))
[[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}"
}
+
+ # config find
+ cf() {
+ local f
+ IFS=$'\n' f=($(command find ~/.dotfiles -type f ! -ipath "*/.git/*" ! -ipath "*/bin/*" ! -ipath "*/oh-my-zsh/*" ! -name ".DS_Store" | fzf +m --prompt="find> " --height=40 --reverse --cycle))
+ [[ -n "$f" ]] && printf "$f"
+ }
+
# vim setting edit
ve() {
local files