Skip to content

Terminal tmux

Basic Tmux, Tmux package manager, and sane default configuration

Section titled “Basic Tmux, Tmux package manager, and sane default configuration”

Source: Tmux has forever changed the way I write code. - YouTube - Dreams of Code

Terminal window
# Install tmux with Nix
nix-env -iA nixpkgs.tmux
# Set up tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Set up sane default configuration in $HOME/.config/tmux/tmux.conf
# In tmux session, press prefix + I to install plugins per conf file

Source: Learn tmux (Part 1) Boost your Linux Productivity with this 5-part Course! - Learn Linux TV - YouTube

  • Sessions in tmux persist even after you close the terminal/ssh connections and can be re-attached later

Practical tmux: A How-To Guide Beyond the Basics

Section titled “Practical tmux: A How-To Guide Beyond the Basics”

Source: Practical tmux: A How-To Guide Beyond the Basics - YouTube

  • Manage sessions, like using for project, can change session path with loading direnv
  • Change repos