diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-22 14:52:57 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-22 14:52:57 +0200 | 
| commit | 1bb83f18cd5bf5a739f60141e62b63c2e9ba6036 (patch) | |
| tree | 16691382ae72eea4647cc017fadb5d66e361dd92 /config/essentials/zsh/functions.zsh | |
| parent | bf2756fbb5db8ff2bd248ab5a528c31304263db2 (diff) | |
changed fhome to goo
Diffstat (limited to 'config/essentials/zsh/functions.zsh')
| -rw-r--r-- | config/essentials/zsh/functions.zsh | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 1dc31b0..b80013b 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -10,21 +10,24 @@ vimh() { vim -c "help $1" -c 'call feedkeys("\<c-w>o")' }  nnn() { test -z "$NNNLVL" && /usr/bin/nnn "$@" || exit }  ranger() { test -z "$RANGER_LEVEL" && /usr/bin/ranger "$@" || exit } -# googoo +# googoo aliases +ff () { goo f $1 | fzf } +fd () { goo d $1 | fzf } +fdf () { goo f $1 | fzf | xargs dirname }  o ()  { -	f="$(fhome f ${1:-$HOME} | fzf)" +	f="$(ff $1)"  	test "$1" && shift  	test -n "$f" && $EDITOR $@ "$f"  }  go ()  { -	d="$(fhome d ${1:-$HOME} | fzf)" +	d="$(fd $1)"  	test -d "$d" && cd "$d"  }  ogo ()  { -	d="$(fhome f ${1:-$HOME} | fzf | xargs dirname)" +	d="$(fdf $1)"  	test -d "$d" && cd "$d"  }  | 
