lsparrish comments on Interested in learning Linux? Need hosting? Free shells! - Less Wrong

28 Post author: JohnWittle 09 September 2012 05:35AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (37)

You are viewing a single comment's thread.

Comment author: lsparrish 22 September 2012 02:30:31AM *  0 points [-]

I recommend using tmux as an alternative to screen, which lets you use multi-pane windows, and also lets you keep a live session going even when you get disconnected. I don't like the default prefix of ctrl-b, but I find alt-a to be suitable. To get this, add the following to your .tmux.conf file:

set-option -g prefix M-a

Then type 'tmux' to load it up.

Comment author: JohnWittle 24 September 2012 07:58:56AM *  0 points [-]

i use the ` key, which I have yet to find a use for in any situation ever. since 90% of the time, the next key you're going to press is a number key, this works really well.

Comment author: lsparrish 24 September 2012 05:21:00PM *  0 points [-]

Good point. Actually it is useful in bash scripting when you want to include the output of a command in the arguments of another. However you can get it to work when you press the key twice by using send-prefix like so:

set-option -g prefix `
bind-key ` send-prefix

The only disadvantage is that now you can't copy and paste without losing your backticks, and possibly triggering an action you didn't intend. I haven't yet run into a situation where this was relevant though.