mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
completion nmap: suppress warning when local scripts folder exists
This commit is contained in:
parent
80888eed57
commit
ac81d370cd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue