Skip to content

CSmartt/redbrick-tmux-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tmux is a terminal multiplexer. Tested with tmux 1.5+.

This config has support for tmux-mem-cpu.

Prefix mapped to Ctrl-B but can has Ctrl-A commented out for screen users if they wish to use it.

Installation

Download:

git clone https://github.com/redbrick/redbrick-tmux-config.git ~/.tmux

Copy tmux config to home:

bash ~/.tmux/setup.sh

Powerline (Advanced)

You can add suport for powerline by adding these to your ~/.tmux.conf. Be sure to grab and install powerline-fonts for your system.

See Powerline on ReadTheDocs.org for more info.

# pip install --user git+git://github.com/powerline/powerline
if-shell 'test -f ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' 'source-file ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'

# [sudo] pip install git+git://github.com/powerline/powerline
if-shell 'test -f /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'

# [sudo] pip install git+git://github.com/powerline/powerline
if-shell 'test -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf'
# using python3.3
if-shell 'test -f /usr/local/lib/python3.3/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python3.3/dist-packages/powerline/bindings/tmux/powerline.conf'
# python 3.4?
# if-shell 'test -f /usr/local/lib/python3.4/dist-packages/powerline/bindings/tmux/powerline.conf' 'source-file /usr/local/lib/python3.4/dist-packages/powerline/bindings/tmux/powerline.conf'

Start tmux

To start a session:

tmux

To reattach a previous session:

tmux attach

To reload config file

<Control + b>: (which could Ctrl-B or Ctrl-A if you overidden it) then source-file ~/.tmux.conf

Commands

Our prefix/leader key is Control + b now (just like the screen multiplexer). This sequence must be typed before any tmux shortcut.

  • Control + b before any command
  • Control + b then ? to bring up list of keyboard shortcuts
  • Control + b then " to split window
  • Control + b then <Space> to change pane arrangement
  • Control + b then o to rotate panes
  • Control + b then h, j, k, l to move left, down, up, right. Respectively. (vim hjkl)
  • Control + b then ; to go to last panel

Beyond your first window:

  • Control + b then c to create a new window
  • Control + b then n to next window
  • Control + b then p to previous window
  • Control + b then [0-9] move to window number
  • Control + b then & to kill window

Custom:

  • Control + b then m to switch to main-horizontal layout with the main window at 60% height.

About

Nice tmux config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%