diff --git a/.tmux.conf b/.tmux.conf index ba1a7d99..e422b2ef 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,5 +1,7 @@ +# To be placed in $HOME + # Set default terminal -set -g default-terminal "kitty" +set -g default-terminal "st" # Unbinding the prefix from Ctrl-b to Ctrl-x unbind C-b @@ -27,4 +29,3 @@ bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R - diff --git a/tmux_basics.txt b/tmux_basics.txt new file mode 100644 index 00000000..532d3ca7 --- /dev/null +++ b/tmux_basics.txt @@ -0,0 +1,49 @@ +Tmux basics: + +Enter tmux (without attach will create new session): +tmux + +Config file: $HOME/.tmux.conf + +Ctrl + x (prefix, origianlly Ctrl + B) + +Hide bottom status bar: +Ctrl + x + z + +Vertical split +Ctrl + x + % +OR (personalized) +Ctrl + x + = + +Horizontal split +Ctrl + x + " +OR (personalized) +Ctrl + x + - + +Navigate between windows (vim style): +Ctrl + x + j (navigate one split down horizonatal) +Ctrl + x + k (navigate one split up horizonatal) +Ctrl + x + h (navigate one split left vertical) +Ctrl + x + l (navigate one split right vertical) + +Create new window +Ctrl + x + c + +Navigate between windows (emacs style): +Ctrl + x + p (previous) +Ctrl + x + n (next) + +Rename a window (for ease of recognition): +Ctrl + x + , + +Kill a window( or exit if only window): +Ctrl + x + & +OR (personalized) +Ctrl + x + x + +You can also end a session by entering into the terminal: +exit + +If you didn't kill the window this way, the session is still open and you can +"attach" to that session like so: +tmux attach