Skip to content

Commit

Permalink
completion nmap: suppress warning when local scripts folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
exploide authored and faho committed Jul 30, 2021
1 parent 80888ee commit ac81d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/completions/nmap.fish
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function __fish_complete_nmap_script
set -g __fish_nmap_script_completion_cache_time (date +"%s")
set -g __fish_nmap_script_completion_cache ""
set -l cmd
for l in (nmap --script-help all|grep -A2 -B1 Categories:|grep -v '^\\(--\\|Categories:\\|https:\\)')
for l in (nmap --script-help all 2> /dev/null | grep -A2 -B1 Categories: | grep -v '^\\(--\\|Categories:\\|https:\\)')
if string match -q -v --regex "^ " $l
set cmd $l
else
Expand Down

0 comments on commit ac81d37

Please sign in to comment.