Skip to content
SaeHie Park edited this page Sep 25, 2023 · 7 revisions

Manual

Status bar color

~/.tmux.conf file as

set -g default-terminal "screen-256color"
set -g status-bg "colour33"
set -g status-fg "white"

Lots of history

set -g history-limit 8192

Use mouse

set -g mouse on
  • mouse selection is not working as it used to. cannot use in os-x

Tmux with multiple window bash script

#!/bin/bash

session="one"

tmux new-session -d -s $session

tmux set-window-option -g window-status-current-style fg=red,bg=white
tmux set-option status-style fg=white,bg=red

window=1
tmux new-window -t $session:$window -n 'one'
tmux send-keys -t $session:$window 'cd ~/github/seanshpark/one' C-m
tmux send-keys -t $session:$window 'source /.../venvone/bin/activate' C-m

window=2
tmux new-window -t $session:$window -n 'one.dr'
tmux send-keys -t $session:$window 'cd ~/github/seanshpark/one.draft' C-m
tmux send-keys -t $session:$window 'source /.../venvone/bin/activate' C-m

window=3
tmux new-window -t $session:$window -n 'run.dr'
tmux send-keys -t $session:$window 'cd ~/github/seanshpark/one.draft' C-m
tmux send-keys -t $session:$window 'source /.../venvone/bin/activate' C-m

tmux attach-session -t $session

Tutorial

Clone this wiki locally