Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fix broken completion of screen on osx, test on ubuntu and mac #3271
Change sed expression of function '__fish_complete_screen' in share/completion/screen.fish to support completion on both mac and linux.
Fixes issue #
fish does not complete
~/W/G/f/s/completions (master)$ screen -r 819 81930.test1 (Screen: Detached) 81951.test3 (Screen: Detached) 81940.test2 (Screen: Detached) 81961.test4 (Screen: Detached)
on linux (ubuntu):
xxx@localhost ~> screen -r 4 4171.test1 ((07/28/16 08:09:41) Screen:Detached) 4272.test3 ((07/28/16 08:10:19) Screen:Detached) 4255.test2 ((07/28/16 08:10:17) Screen:Detached) 4289.test4 ((07/28/16 08:10:21) Screen:Detached)
You will find that they are a little different because
Hm, one can adjust
screen -list There are screens on: 32189.pts-3.aaron (08/01/2016 08:45:00 AM) (Attached) … begin; set -lx LC_TIME en_DK.UTF-8; screen -list; end There are screens on: 32189.pts-3.aaron (2016-08-01 08:45:01) (Attached) … begin; set -lx LC_TIME POSIX; screen -list; end There are screens on: 32189.pts-3.aaron (08/01/16 08:45:01) (Attached)
They just behave the same way.
I use a trick for
I have these screen sockets in socket directory.
They are all detached.
And then I change the file permission of one of them.
The 90843.test is attached now without executing
Thus I change the list function for mac by using
It relies on
I'm sorry I have no time to come up with another good idea.
…shell#3271) * fixes broken completion of screen on osx, test on ubuntu and mac with fish 2.3.1 * replaces sed, __fish_sgrep with fish builtin string * add completion for `screen -x` * adjust format (e.g. 12345.socket\t01/01/16 09:55:00 Detached)