Skip to content

Instantly share code, notes, and snippets.

@cromo
Last active November 23, 2015 16:19
Show Gist options
  • Select an option

  • Save cromo/3c7662899893b237b6d4 to your computer and use it in GitHub Desktop.

Select an option

Save cromo/3c7662899893b237b6d4 to your computer and use it in GitHub Desktop.
Handy tmux shortcuts that I keep needing to remember

Keep the window's name fixed

From http://stackoverflow.com/questions/6041178/keep-the-windows-name-fixed-in-tmux?rq=1

From within tmux:

set-option -g allow-rename off

Via environment variable:

DISABLE_AUTO_TITLE=true

Renumber the current window

From http://superuser.com/questions/343572/how-do-i-reorder-tmux-windows

<prefix> .

Move window from one session to another

From http://stackoverflow.com/questions/3094946/move-window-between-tmux-clients

Move current window:

move-window -t other_session

Changing sessions

From https://gist.github.com/andreyvit/2921703

Attaching to existing session:

tmux a -t name

From within tmux:

<prefix> (  previous session
<prefix> )  next session
<prefix> L  last active session
<prefix> s  choose from list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment