[Bash-completion-devel] [PATCH] List both attached and detached sesstions for screen -x
Alexey Zaytsev
alexey.zaytsev at gmail.com
Fri Nov 5 01:19:14 UTC 2010
Signed-off-by: Alexey Zaytsev <alexey.zaytsev at gmail.com>
---
Attaching to a currently detached screen sesstion looks
like the natural thing to me.
completions/screen | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/completions/screen b/completions/screen
index cabc4b7..1dc7a59 100644
--- a/completions/screen
+++ b/completions/screen
@@ -36,11 +36,16 @@ _screen()
_screen_sessions 'Detached'
return 0
;;
- -[dDx])
+ -[dD])
# list attached
_screen_sessions 'Attached'
return 0
;;
+ -x)
+ # list both
+ _screen_sessions
+ return 0
+ ;;
-s)
_shells
return 0
More information about the Bash-completion-devel
mailing list