Improvements to hashcat completion
The main args completion no longer uses a bash while loop for splitting up the arguments making it much faster. I have also removed the use of FZF for looking up modes. This has been moved into the overidepartialcompletion file in includes.
This commit is contained in:
parent
02b9b6e51e
commit
69206d46a4
2 changed files with 11 additions and 17 deletions
|
@ -53,6 +53,13 @@ overidecomplete(){
|
|||
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 ;;
|
||||
hashcat)
|
||||
case "$lastWord" in
|
||||
-m|--hash-type) toadd="$( hashcat --example-hashes | grep -E '(mode|Example\.Hash\.\.|Name|^$)' | awk -F ': ' '{print $NF}' | sed 's/Hash mode #//' | awk -v RS="\n\n" -F="\t" '{gsub("\n","\t",$0);print $0}' | fzf -d "\t" --header="Mode Type" --with-nth='1,2' --preview='echo {3}' --preview-window=up:1 --height=40% | cut -d' ' -f1)"
|
||||
ret=0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue