# copy and paster set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/fish" bind C-c run "tmux show-buffer | reattach-to-user-namespace pbcopy" bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" # look good set -g default-terminal "screen-256color" ### set colour for when display-panes command ### set -g display-panes-active-colour colour226 set -g display-panes-colour colour17 unbind C-b # set -g prefix C-s set -g prefix C-Space # bind C-s send-prefix bind Space send-prefix bind C-Space last-window # a mouse set -g mode-mouse on setw -g mouse-select-window on setw -g mouse-select-pane on ### index starts from this number ### set -g base-index 1 set -g pane-base-index 1 bind-key J resize-pane -D 5 bind-key K resize-pane -U 5 bind-key H resize-pane -L 5 bind-key L resize-pane -R 5 # act like vim setw -g mode-keys vi bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R bind-key -r C-h select-window -t :- bind-key -r C-l select-window -t :+ unbind [ bind ` copy-mode unbind p bind p paste-buffer bind -t vi-copy v begin-selection bind -t vi-copy y copy-selection # after copying to a tmux buffer, hit y again to copy to clipboard bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" # Message bar set -g message-attr bright set -g message-bg black set -g message-fg blue set -g display-time 2000 set -g display-panes-time 2000 # Window mode bar setw -g mode-bg white setw -g mode-fg black # Status bar set -g status-bg black set -g status-fg white set -g status-interval 10 set -g status-left-length 50 set -g status-left '#[fg=green][#I:#P #W] #(whoami)@#(hostname -s) ' set -g status-right "{#[bold,fg=cyan]#(uptime | awk -F: '{print $(NF\\)}' | sed s/' '//)#[nobold,fg=default]} {#[bold,fg=cyan]%a %m/%d %H:%M%p#[nobold,fg=default]}"