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. * Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist. * Remove many unnecessary short option completions where long ones exist.
* Improve configure, cvs, gkrellm, lftp, mdadm, modprobe, mplayer, * 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 abook and wtf completion, based on work by Raphaël Droz.
* Add jarsigner, k3b, lftpget, pack200 and unpack200 completions. * Add jarsigner, k3b, lftpget, pack200 and unpack200 completions.
* Don't overwrite other host completions when completing from multiple * Don't overwrite other host completions when completing from multiple

View File

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