Drop short options from screen completions where long(er) ones exist, add --help and --version.

This commit is contained in:
Ville Skyttä 2009-12-09 01:06:47 +02:00
parent 21d0f70cb0
commit 536a780c2e
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ bash-completion (2.x)
* Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist.
* Improve configure, cvs, gkrellm, lftp, mdadm, modprobe, mplayer,
mysqladmin, service, scp, ssh, and general hostname completions.
mysqladmin, screen, service, scp, ssh, and general hostname completions.
* Add abook and wtf completion, based on work by Raphaël Droz.
* Add jarsigner, k3b, lftpget, pack200 and unpack200 completions.
* Don't overwrite other host completions when completing from multiple

View File

@ -53,9 +53,9 @@ _screen()
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" ) )
COMPREPLY=( $( compgen -W '-a -A -c -d -D -e -f -fn -fa -h -i -ln \
-list -L -m -O -p -q -r -R -s -S -t -U -v -wipe -x -X --help \
--version' -- "$cur" ) )
fi
} &&
complete -F _screen -o default screen