From 91daa8de58a6e88d5a4b55621e2e7d5e732c65ea Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Mon, 30 Mar 2009 21:59:58 +0200 Subject: [PATCH] add options completion --- contrib/screen | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/screen b/contrib/screen index 84c5fb6d..a549b763 100644 --- a/contrib/screen +++ b/contrib/screen @@ -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