Korkman / shell-pack

A fish shell environment with many quality of life improvements for sysadmins and devops.
4 stars 0 forks source link

cheat --tmux #9

Closed Korkman closed 2 years ago

Korkman commented 3 years ago

Add a sheet displaying the bundled tmux keybinds, show a warning if installed tmux config differs from bundled.

List the custom keybindings but also less known tricks for midnight commander

tmux
(as configured by shell-pack)

keys:

ctrl-a: is synonym for ctrl-b, because it is more accessible (and tradition)
ctrl-a, then
r: reload config
|: split window into left and right
-: split window into top and bottom
   alias: shift-s
c: create new window
esc: enter copy mode to scroll up to 10000 lines back
     alias: pgup
v: paste
arrow-left, arrow-right: move window left / right on task bar, renumber
shift-b: enter broadcast mode, sending keystrokes to all panes
bspace, space: jump to previous, next window
ctrl-a: jump to most recent window
shift-Q: break out a pane into a dedicated window
         alias: !
k: kill pane (if confirmed)
tab: jump to next pane
shift-k: kill all windows and exit (if confirmed)
         alias: \
shift-n: show window number and name
shift-a: rename window

notes:

* mouse works, can scroll in history when in copy mode and resize panes
* window numbering starts at 1, ends on 0 to be more natural on keyboard
* environment variables are being taken care of, most notably enabling 
  ssh agent forwarding
* a new window will inherit the working directory of the current window