CMDUI enhancement tools

tmux

The prefix key is configured by .tmux.config file. The default prefix key is CTRL+b.

Window management

Command

Result

Prefix + c

Create a new window

Prefix + p

Switch to the previous window

Prefix + n

Switch to the next window

Prefix + 0-9

Switch to a window using it’s index number

Prefix + w

Choose a window from an interactive list

exit

Close a window

Prefix + &

Force kill-all processes in an unresponsive window

Pane management

Command

Result

Prefix + “

Split the active pane horizontally

Prefix + %

Split the active pane vertically

Prefix + arrow key

Switch to another pane

Prefix + ALT+arrow

Resize the active pane

Prefix + z

Zoom in on the active pane. Press the same combination again to exit zoom mode

exit

Close the active pane

Prefix + x

Force kill an unresponsive process in a pane

Scroll mode

Prefix + [, then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn).

Press q to quit scroll mode.

When mouse mode is on: press Shift

Customizing tmux

Create ~/.tmux.conf and fill it with the following content

zsh

Install zsh

Create .zshrc

Modify .zshrc

Change default shell to zsh

Colorized shell

Config dircolors to remove dir background in ls -color output

eval needs to be defined after the plugins, but before source $ZSH/oh-my-zsh.sh

Get rid of colorized shell

Comment the following lines

References

Last updated

Was this helpful?