In bash, when I type screen -x
and press tab twice, I get a list of all the running sessions.
In zsh, when I type screen -ls
and press tab twice, I get a list of all the running sessions and can tab through them, eventually select one when pressing enter, but this then executes screen -ls session-name
when pressing enter again.
What I want in zsh is to get a behavior for -x
similar to -ls
, so that I don't have to type the session name or select the session and go back and change ls
to x
.
I can't find the code which implements the screen -ln
tab-behavior in order to also implement it for -x
, I've been searching/grepping through the list of .oh-my-zsh
plugins but am getting nowhere.
Any help is appreciated, or maybe some workflow tips. I use screen a lot and most of it is via screen -x
.
screen -x
TAB in zsh should list the attached screen sessions, whilescreen -ls
TAB should list all screen sessions whether they're attached or not.screen -x -S <Tab>
to complete any screen session with -x, or modify a copy of the_screen
file to change the behaviour.screen -x -S <Tab>
workaround, works just like what I'm after.