Skip to content

Instantly share code, notes, and snippets.

@gazoombo
Created January 27, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gazoombo/1690233 to your computer and use it in GitHub Desktop.
Save gazoombo/1690233 to your computer and use it in GitHub Desktop.
Aliases for shared tmux sessions
alias tmuxmulti="if tmux -S /tmp/multi has -t AO-PPS; then reattach-to-user-namespace tmux -S /tmp/multi attach; else reattach-to-user-namespace tmux -S /tmp/multi new -s AO-PPS; fi"
alias tmuxer="ssh username@xxx.xxx.xxx.xxx -t '/opt/local/bin/tmux -S /tmp/multi attach'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment