################################################################### # __ __ _ __ # # | \/ |_ _ | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _| # # | |\/| | | | | | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_ # # | | | | |_| | | |_| | | | | | |_| |> < | (_| (_) | | | | _| # # |_| |_|\__, | (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_| # # |___/ # ################################################################### # OPTIONS {{{1 # BASICS {{{2 set-option -g base-index 1 set-option -g pane-base-index 1 set-option -g renumber-windows on set-option -g default-shell /usr/local/bin/zsh set-option -g history-limit 10000 # TERMINAL FEATURES {{{2 set-option -g default-terminal screen-256color set-option -ga terminal-overrides ',xterm-256color:Tc' set-option -ga terminal-overrides ',*:Smulx=\e[4::%p1%dm' set-option -ga terminal-overrides ',*:Setulc=\e[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # APPEARANCE {{{2 set-option -g status-justify left set-option -g status-left ' [#S] ' set-option -g status-left-length 20 set-option -g status-position top set-option -g status-right '%F (%a) %R ' set-option -g status-right-length 25 set-option -g pane-border-lines double # KEY BINDINGS {{{1 unbind-key -a -T root unbind-key -a -T prefix set-option -g status-keys emacs set-option -g prefix C-t bind-key : command-prompt bind-key ';' command-prompt bind-key ? list-keys bind-key t new-window bind-key n next-window bind-key p previous-window bind-key N move-window -a bind-key P move-window -b bind-key w switch-client -T tw bind-key -T tw h split-window -h -b bind-key -T tw j split-window -v bind-key -T tw k split-window -v -b bind-key -T tw l split-window -h bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R bind-key = select-layout tiled bind-key g display-panes -d 0 set-option -g mode-keys vi bind-key V copy-mode bind-key -T copy-mode-vi V send-keys -X select-line bind-key -T copy-mode-vi Escape send-keys -X clear-selection bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" bind-key s set-option synchronize-panes