add options completion

This commit is contained in:
Guillaume Rousse 2009-03-30 21:59:58 +02:00
parent 061ebd49d1
commit 91daa8de58

View File

@ -56,5 +56,11 @@ _screen()
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i \
-l -ln -ls -list -L -m -O -p -q -r -R -s -S -t -U -v \
-wipe -x -X' -- $cur ) )
fi
} &&
complete -F _screen $default screen