diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 53db6bf..977d98b 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -9,8 +9,9 @@ setw -g mode-keys vi # VI-style copy & paste unbind [ bind Escape copy-mode -#bind-key -t vi-copy 'v' begin-selection -#bind-key -t vi-copy 'y' copy-selection +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel +bind -T copy-mode-vi C-v send-keys -X rectangle-toggle # remove SSH_AUTH_SOCK from update-environment, otherwise setting it specifically doesn't work set-option -g update-environment "PATH DISPLAY LANG LC_ALL SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" @@ -19,5 +20,10 @@ set-environment -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock set -g escape-time 10 -# maybe? +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",xterm-256color:Tc" + set-option -g set-clipboard external + +# Status bar styling (dark gray background, white text) +# set -g status-style bg=colour236,fg=white