add -p option completion

This commit is contained in:
Guillaume Rousse 2013-01-07 12:41:52 +01:00
parent b9b4c6bf2c
commit 89098f79fd

View File

@ -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
} &&