Skip to content

Instantly share code, notes, and snippets.

@TorvaldsDB
Created November 14, 2019 01:27
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 TorvaldsDB/ff0f570a7ba860625dae9eb4a7e1c973 to your computer and use it in GitHub Desktop.
Save TorvaldsDB/ff0f570a7ba860625dae9eb4a7e1c973 to your computer and use it in GitHub Desktop.
tmux alias config in .bashrc OR .bash_profile OR .zshrc to conveniently handle tmux sessions
  alias tnew='tmux new -s' # new a session
  alias tls='tmux ls'      # list all sessions
  alias topen='tmux a -t'  # open one of sessions with session number
  alias tlast='tmux a'     # resume last used session
  alias tkill='tmux kill-session -t' # kill one of sessions with session number
  alias tkillall='tmux kill-server'  # kill all sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment