From f6f7c490b8568463cd787c9b05c3b6f39e6be02b Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 19 Sep 2020 11:22:53 +0100 Subject: [PATCH] Adds fzf completion to ytaudio --- shells/zsh/includes/overidepartialcompletion.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shells/zsh/includes/overidepartialcompletion.zsh b/shells/zsh/includes/overidepartialcompletion.zsh index aa74e7e1..3d2c9d3b 100644 --- a/shells/zsh/includes/overidepartialcompletion.zsh +++ b/shells/zsh/includes/overidepartialcompletion.zsh @@ -51,6 +51,8 @@ overidecomplete(){ 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 ;; 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 fi