How do I display the current “session” name or “sockname” of a screen session in the status bar?

后端 未结 7 1407
醉酒成梦
醉酒成梦 2020-12-13 04:15

I run multiple screen sessions each created with \'screen -S name\' and I would like to be able to display in the status bar the name

7条回答
  •  感情败类
    2020-12-13 04:58

    paraphrased from https://superuser.com/a/212520/151988, put this into your ~/.screenrc;

    screen 
    screen $SHELL -c 'screen -X caption always "$STY"'
    

提交回复
热议问题