Skip to content

Commit

Permalink
Fix completion of scripts from ~/.nmap: forgot to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 13, 2011
1 parent 695cb1c commit ca455de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmap
Expand Up @@ -49,12 +49,12 @@ _nmap() {
COMPREPLY=( $( cd "$NMAPDIR/scripts/" 2>/dev/null &&
compgen -W "$categories all" -G "*.nse" -X "!$realcur*" -P "$prefix," -- $realcur )
$( cd ~/.nmap/scripts/ 2>/dev/null &&
compgen -G "*.nse" -- $realcur ) )
compgen -G "*.nse" -X "!$cur*" -- $realcur ) )
else
COMPREPLY=( $( cd "$NMAPDIR/scripts/" 2>/dev/null &&
compgen -W "$categories all" -G "*.nse" -X "!$cur*" -- $cur )
$( cd ~/.nmap/scripts/ 2>/dev/null &&
compgen -G "*.nse" -- $cur ) )
compgen -G "*.nse" -X "!$cur*" -- $cur ) )
fi
;;
-e)
Expand Down

0 comments on commit ca455de

Please sign in to comment.