diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-15 15:08:46 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-15 15:08:46 +0200 | 
| commit | 0ea5e7a97b7ccba919d5c495e3e328b30cec9e03 (patch) | |
| tree | 6cc9ed62bc350031e3670ed270fa764d715cfbd4 | |
| parent | 15d604ed1c9e0b74663ab4271a9ce17ded2889e2 (diff) | |
[functions.zsh] removed unecessary tests
| -rw-r--r-- | config/essentials/zsh/functions.zsh | 14 | 
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()   | 
