summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-15 15:08:46 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-08-15 15:08:46 +0200
commit0ea5e7a97b7ccba919d5c495e3e328b30cec9e03 (patch)
tree6cc9ed62bc350031e3670ed270fa764d715cfbd4 /config
parent15d604ed1c9e0b74663ab4271a9ce17ded2889e2 (diff)
[functions.zsh] removed unecessary tests
Diffstat (limited to 'config')
-rw-r--r--config/essentials/zsh/functions.zsh14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index 6c2437f..eb776f0 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -54,14 +54,20 @@ o()
go()
{
_googoo_fzf_opt "$1"
- d="$(goo d "$dest" | fzf $opt)"
- test -d "$d" && cd "$d"
+ cd "$(goo d "$dest" | fzf $opt)"
}
ogo()
{
_googoo_fzf_opt "$1"
- d="$(dirname "$(goo f "$dest")" | fzf $opt)"
- test -d "$d" && cd "$d"
+ cd "$(dirname "$(goo f "$dest")" | fzf $opt)"
+}
+dgo()
+{
+ cd "$(goo d | fzf --filter "$@" | head -n 1)"
+}
+open()
+{
+ $EDITOR "$(goo f | fzf --filter "$@" | head -n 1)"
}
ipc()