moving everything to active or retired vs incubating and graduated
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 14s
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 14s
This commit is contained in:
39
active/software_tmux/tmux.md
Normal file
39
active/software_tmux/tmux.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Tmux
|
||||
|
||||
## Commands I keep losing
|
||||
|
||||
```bash
|
||||
# attach if exists, create if not
|
||||
tmux new-session -A -s name
|
||||
|
||||
# list sessions
|
||||
tmux ls
|
||||
|
||||
# switch to another session from within a session
|
||||
tmux switch-client -t name
|
||||
|
||||
# kill a session
|
||||
tmux kill-session -t name
|
||||
```
|
||||
|
||||
## Example conf
|
||||
|
||||
Config is located at `$HOME/.tmux.conf`
|
||||
|
||||
```bash
|
||||
# Set teh default shell
|
||||
set-option -g default-shell "/bin/zsh"
|
||||
|
||||
# Split panes using | and _
|
||||
bind | split-window -h
|
||||
bind _ split-window -v
|
||||
# Remove the split panes % and " bindings
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# Set mouse mode (for scrolling)
|
||||
set -g mouse on
|
||||
|
||||
# Press ctrl + r to reload tmux when you update this config
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||
```
|
||||
Reference in New Issue
Block a user