All Projects β†’ aleclearmind β†’ nested-tmux

aleclearmind / nested-tmux

Licence: MIT License
A simple tmux configuration for nested tmux sessions

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to nested-tmux

.tmux
πŸ‡«πŸ‡· Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❀️
Stars: ✭ 15,594 (+23527.27%)
Mutual labels:  tmux, tmux-plugins, tmux-configuration, tmux-conf, tmux-config
tmux-conf
πŸ“ TMUX Configuration for nerds with tpm
Stars: ✭ 31 (-53.03%)
Mutual labels:  tmux, tmux-plugins, tmux-conf, tmux-plugin
tmux-suspend
Plugin that lets you suspend local tmux session, so that you can work with nested remote tmux session painlessly.
Stars: ✭ 58 (-12.12%)
Mutual labels:  tmux, tmux-plugins, tmux-plugin
dotfiles
Dotfiles for Neovim (0.7+), Fish shell, git, Kitty, tmux, and more.
Stars: ✭ 54 (-18.18%)
Mutual labels:  tmux, tmux-configs, tmux-configuration
tmux-menus
Tmux plugin, Popup menus to help with managing your environment
Stars: ✭ 124 (+87.88%)
Mutual labels:  tmux, tmux-plugins, tmux-plugin
muxed
Another TMUX project manager
Stars: ✭ 58 (-12.12%)
Mutual labels:  tmux, tmux-configs, tmux-configuration
.dotfiles
πŸ’» My settings for macOS, kitty, zsh, nvim, tmux, and more πŸ› 
Stars: ✭ 44 (-33.33%)
Mutual labels:  tmux, tmux-configuration, tmux-conf
tmux-base16-statusline
Tmux Base16 Statusline
Stars: ✭ 24 (-63.64%)
Mutual labels:  tmux, tmux-plugins
tmux-plugin-spotify
tmux plugin displaying currently played song on Spotify (linux only)
Stars: ✭ 48 (-27.27%)
Mutual labels:  tmux, tmux-plugin
tmux super fingers
A Tmux plugin to open file links from the terminal in vim
Stars: ✭ 44 (-33.33%)
Mutual labels:  tmux, tmux-plugin
tmux
πŸ’½ Soothing pastel theme for Tmux!
Stars: ✭ 63 (-4.55%)
Mutual labels:  tmux, tmux-conf
dotfiles
shell, git, vim, tmux .etc dotfiles, managed via gnu stow
Stars: ✭ 20 (-69.7%)
Mutual labels:  tmux, tmux-configs
dotfiles
A place to store config files so I can revert when my entire system crashes from entering the wrong character
Stars: ✭ 25 (-62.12%)
Mutual labels:  tmux, tmux-conf
dotfiles
NeoVim + git + zsh + tmux bliss
Stars: ✭ 19 (-71.21%)
Mutual labels:  tmux, tmux-configs
tmux-airline-dracula
A tmux theme for Dracula color scheme.
Stars: ✭ 33 (-50%)
Mutual labels:  tmux, tmux-plugin
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! πŸš€
Stars: ✭ 254 (+284.85%)
Mutual labels:  tmux, tmux-conf
dotfiles
πŸ€ My dotfiles macOS / Linux (Ubuntu, Arch) / Android
Stars: ✭ 16 (-75.76%)
Mutual labels:  tmux, tmux-configs
dotfiles
πŸ€ Vim/Neovim + Tmux + Zsh + Alacritty = Build your own fantastic development environment
Stars: ✭ 65 (-1.52%)
Mutual labels:  tmux, tmux-conf
my-dotfiles
πŸ“ Meus arquivos de configuração para as ferramentas do dia a dia
Stars: ✭ 17 (-74.24%)
Mutual labels:  tmux, tmux-conf
tmux.nvim
tmux integration for nvim features pane movement and resizing from within nvim.
Stars: ✭ 299 (+353.03%)
Mutual labels:  tmux, tmux-configuration

Nested tmux

This is a simple tmux configuration enabling to have arbitrarily many nested tmux sessions.

Demo

Demo

Quick start

mkdir ~/.tmux.conf.d/
cd ~/.tmux.conf.d/
git clone https://github.com/aleclearmind/nested-tmux.git
mv ~/.tmux.conf ~/.tmux.conf.backup
echo "source ~/.tmux.conf.d/nested-tmux/active-row.conf" > ~/.tmux.conf
tmux

Shortcuts

  • Ctrl + a, Ctrl + c or Ctrl + t: create a new window
  • Ctrl + a, Ctrl + s: create a new nested tmux session and ask a name for it
  • Ctrl + a, Ctrl + A: switch to last window
  • Ctrl + a, A: rename current window
  • Alt + Right: move to the next window of the current row
  • Alt + Left: move to the previous window of the current row
  • Alt + Up: move to the inner tmux session
  • Alt + Down: move to the outer tmux session

FAQ

  • Q: Why do we need this?

    A: When working with many projects it's useful to have a dedicated tmux session with three windows per-project: one with a text editor, one for git and one for the build directory. This is why this project was born. However, nested tmux sessions are addictive and quickly become in-terminal workspaces that can be used for any purpose.

  • Q: Does it support multiple nested layers of tmux sessions?

    A: Yes.

  • Q: Has it been tested with other configuration X?

    A: No.

  • Q: How is this implemented?

    A: The idea is two have two configurations, active-row.conf and inactive-row.conf. The former is for the currently active row in the nested tmux tree, the second for the inactive rows. Each session know who its parent is through the TMUX_PARENT environment variable (set in the new-tmux script). When Alt + Up is pressed, the Alt + F12 combination is sent to the active window. If the active window is a nested tmux session, it will load active-row.conf and forces loading inactive-row.conf in its parent (i.e., the row that originally received the Alt + Up key combination. When Alt + Down is pressed, the current row loads inactive-row.conf and forces loading active-row.conf in its parent.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].