Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
SESSION='MyFin'
#create new session and then detach from it
tmux -2 new-session -d -s $SESSION
#create a new window called ace
tmux new-window -t $SESSION:1 -n 'ace'
#split the ace window first vertically
#I can use Super+B becuase Iterm 2 remaps it to hexcode 0x02 which means C-b (ctrl-b)
set -g prefix C-b
#Set the status bar to blue background and black forground
set -g status-bg blue
set -g status-fg black
#Set toggle synchronize-panes to comand-b y (example for linking comands to keybindings)
bind-key y set-window-option synchronize-panes