Login
wazzat
Login

wazzat?!

tmux is generally a replacement for the aged screen utiility i've used for so long. tmux is developed by the openbsd team, and for that reason alone can probably be recognized as being written better/cleaner/safer. but it also provides a host of options that have been missing in screen - not the least of which is split screens. the one and only thing i use screen for that tmux doesn't provide is a connection to a serial console.

quickstart

a fairly detailed/friendly howto is: HERE
  1. start a new session with tmux
  2. give this session a name with the command <CTRL-a> :rename-session edi-stuff
  3. give this window a name with <CTRL-a> ,
  4. create a new window with <CTRL-a> c
  5. give this new window a name as well
  6. create a new session: <CTRL-a> :new-session
  7. give this session a name as well
  8. create a few windows and assign names in this session

hints

roll-yer-own config

you don't need to do anything to get started - just execute tmux in your shell. to change a few of the defaults (to mimic the default screen configuration) just copy/paste the following into your very own ~/.tmux.conf file:
# Set the prefix to ^A for those accustomed to using the screen utility.
unbind C-b
set -g prefix C-a
bind a send-prefix

# reload config
bind r source-file ~/.tmux.conf

# last window
bind ^A last-window

# screen splitting
unbind %
bind | split-window -h
bind _ split-window -v

# Set status bar/theme
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
set-window-option -g window-status-current-bg red
setw -g monitor-activity on


# some of the double-binds below are for those of us who are lazy and
# would prefer to continue holding the CTRL key while pressing the command key

# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window

# detach ^D d
unbind ^D
bind ^D detach

use my hosted config

{i} you'll need the fossil command installed to access this archive, so you might not be able to perform this without first installing another piece of software. but then again if you check out fossil, you might just find another utility so useful that you won't know how you got along without it. :)
  1. pulling down the archive
    mkdir ~/fossils
    cd ~/fossils
    fossil clone https://www.deweyonline.com/fossil/tmux-config tmux-config.fossil
    
  2. unpacking the archive
    mkdir ~/.tmux-config
    cd ~/.tmux-config
    fossil open ~/fossils/tmux-config.fossil
    
  3. making the configuration permanent
    cd ~/.tmux-config
    cp .tmux.conf-example ~/.tmux.conf
    
  4. pulling down configuration updates
    cd ~/.tmux-config
    fossil pull
    

notes