Adds fzf completion to ytaudio

Jonathan Hodgson 4 years ago
parent 3fa98cce86
commit 15e23fcea6
  1. 2
      shells/zsh/includes/overidepartialcompletion.zsh

@ -51,6 +51,8 @@ overidecomplete(){
case "$lastWord" in case "$lastWord" in
-p|--payload) toadd="$(get_msfvenom_payloads | fzf -m -d \: --with-nth=1 --preview='echo {2}' --preview-window=up:1 | cut -d ':' -f 1| tr '\n' ' ')"; ret=0 ;; -p|--payload) toadd="$(get_msfvenom_payloads | fzf -m -d \: --with-nth=1 --preview='echo {2}' --preview-window=up:1 | cut -d ':' -f 1| tr '\n' ' ')"; ret=0 ;;
esac ;; esac ;;
ytaudio)
toadd="\"$(cat "$HOME/Music/youtube-playlists" | fzf -d ' ' --with-nth=2 --preview='echo {1}' --preview-window=up:1 | cut -d' ' -f1)\""; ret=0 ;;
esac esac
fi fi

Loading…
Cancel
Save