summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-14 21:37:08 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-14 21:37:08 +0200
commite1893b1b31503adaa2c2484b57a5d7a4a5d0516c (patch)
treeb0e490701fce7a94b803ff0505cabe8a7ffe19a9
parent0b8685b836fb3cc034857438bf87076fa39af1a1 (diff)
[googoo] fixed destination argument not working
-rwxr-xr-xbin/common/goo2
-rw-r--r--config/essentials/zsh/functions.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/common/goo b/bin/common/goo
index a56cbaf..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 ${dest:-$HOME} \(${dirs} -false \) -prune -o -type ${1:-f} -mindepth 1 -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 3c5f11f..e0eeb45 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -49,7 +49,7 @@ _googoo_fzf_opt ()
o ()
{
_googoo_fzf_opt "$1"
- f="$(goo f "dest" | fzf $opt)"
+ f="$(goo f "$dest" | fzf $opt)"
test "$1" && shift
test -f "$f" && $EDITOR $@ "$f"
}