diff options
-rwxr-xr-x | bin/common/goo | 2 | ||||
-rw-r--r-- | 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)" |