Add shell_tools.md to the git repo. This file aims at bringing together my most useful commands and key bindings. This version has tmux section filled in and the title for some other sections
This commit is contained in:
commit
7861cbdd09
1 changed files with 76 additions and 0 deletions
76
shell_tools
Normal file
76
shell_tools
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
The purpose of this document is serve as a repository of the Unix shell commands and key bindings that either are the most useful or that I use the most.
|
||||
|
||||
# tmux
|
||||
## Sessions
|
||||
Start new session named *name*
|
||||
`tmux new -s name`
|
||||
|
||||
Attach latest session
|
||||
`tmux a`
|
||||
|
||||
Attach to session named *name*
|
||||
`tmux a -t name`
|
||||
|
||||
Detach from session
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>d</kbd>
|
||||
|
||||
List all sessions
|
||||
`tmux ls`
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>s</kbd>
|
||||
|
||||
Rename current session
|
||||
`tmux rename-session newname`
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>$</kbd>
|
||||
|
||||
Kill session named *name*
|
||||
`tmux kill-ses -t name`
|
||||
Kill all sessions except the current
|
||||
`tmux kill-ses -a`
|
||||
|
||||
## Windows
|
||||
|
||||
Create new window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>c</kbd>
|
||||
|
||||
Rename current window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>,</kbd>
|
||||
|
||||
Next window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>n</kbd>
|
||||
|
||||
Previous window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>p</kbd>
|
||||
|
||||
Select window by number
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>0</kbd>...<kbd>9</kbd>
|
||||
|
||||
Close window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>&</kbd>
|
||||
|
||||
## Panes
|
||||
|
||||
Split pane vertically
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>%</kbd>
|
||||
|
||||
Split pane horizontally
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>"</kbd>
|
||||
|
||||
Toggle last active pane
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>;</kbd>
|
||||
|
||||
Switch pane to the direction
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>←</kbd>
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>↑</kbd>
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>→</kbd>
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>↓</kbd>
|
||||
|
||||
Convert pane into a new window
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>!</kbd>
|
||||
|
||||
Close current pane
|
||||
<kbd>Ctrl</kbd>+<kbd>b</kbd>,<kbd>x</kbd>
|
||||
|
||||
# git
|
||||
# docker
|
||||
# weechat
|
||||
|
||||
Loading…
Reference in a new issue