From c6ac8de4715bd4d005bbcc190784e1b4133db47b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 24 Apr 2023 13:55:49 +0200 Subject: quote googoo aliases --- bin/common/goo | 2 +- config/essentials/zsh/functions.zsh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/common/goo b/bin/common/goo index 442f25c..cfd03ec 100755 --- a/bin/common/goo +++ b/bin/common/goo @@ -18,6 +18,6 @@ arduino15" for dir in $exclude; do dirs="$dirs -name \"$dir\" -o " done -cmd="find ${2:-$HOME} \(${dirs} -false \) -prune -o -type ${1:-f} -print" +cmd="find ${2:-$HOME} \(${dirs} -false \) -prune -o -type ${1:-f} -mindepth 1 -print" eval "$cmd" 2>/dev/null diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 64761d9..808f4bf 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -11,9 +11,9 @@ nnn() { test -z "$NNNLVL" && /usr/bin/nnn "$@" || exit } ranger() { test -z "$RANGER_LEVEL" && /usr/bin/ranger "$@" || exit } # googoo aliases -ff () { goo f $1 | fzf } -fd () { goo d $1 | fzf } -fdf () { goo f $1 | fzf | xargs dirname } +ff () { goo f "$1" | fzf } +fd () { goo d "$1" | fzf } +fdf () { goo f "$1" | fzf | xargs -I {} dirname "{}" } o () { f="$(ff $1)" -- cgit v1.2.3