Skip to content

Instantly share code, notes, and snippets.

@magnusstahre
Created January 29, 2012 17:13
Show Gist options
  • Save magnusstahre/1699687 to your computer and use it in GitHub Desktop.
Save magnusstahre/1699687 to your computer and use it in GitHub Desktop.
My .screenrc and .tmux.conf
escape ^Z^Z
bind z suspend
bind ^a other
unbind C-b
set -g prefix C-z
bind C-z send-prefix
bind z suspend-client
@magnusstahre
Copy link
Author

I don't care for the defaults for either screen (C-a) or tmux (C-b), since both are these are commonly used. I tend not to use C-z (suspend) a lot, so I have bound my prefix to that. In those cases you do need to suspend the command running in the tmux or screen window, you can easily tap C-z twice; this workflow also tends to work outside of tmux or screen, since the shell will suspend with the first C-z, and then effectively ignore the second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment