add -p option completion
This commit is contained in:
parent
b9b4c6bf2c
commit
89098f79fd
@ -6,7 +6,7 @@ _dsniff()
|
||||
_init_completion || return
|
||||
|
||||
case $prev in
|
||||
-r|-w|-f)
|
||||
-r|-w|-f|-p)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
@ -17,7 +17,7 @@ _dsniff()
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -r -w' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -r -w -p' -- "$cur" ) )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user