diff --git a/bash_completion b/bash_completion index 6af886d1..96a7ff74 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.631 2003/10/07 06:45:03 ianmacd Exp $ +# $Id: bash_completion,v 1.632 2003/10/07 06:47:55 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -2495,7 +2495,7 @@ _iptables() fi case "$prev" in - -*[AIDPFXL]) + -*[AIDRPFXLZ]) COMPREPLY=( $( compgen -W '`iptables $table -nL | \ sed -ne "s/^Chain \([^ ]\+\).*$/\1/p"`' -- $cur ) ) ;; @@ -2521,6 +2521,14 @@ _iptables() fi ;; *) + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '-i -o -s -d -p -f -m --append \ + --delete --insert --replace --list --flush --zero --new \ + --delete-chain --policy --rename-chain --proto --source \ + --destination --in-interface --jump --match --numeric \ + --out-interface --table --verbose --line-numbers --exact \ + --fragment --modprobe= --set-counters --version' -- "$cur") ) + fi ;; esac