mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(tmux): cross-platform yanking
This commit is contained in:
parent
4ddac62cc9
commit
15cda9ae4a
2 changed files with 74 additions and 1 deletions
79
.tmux.conf
79
.tmux.conf
|
|
@ -1,79 +0,0 @@
|
|||
# mouse control
|
||||
set -g mouse on
|
||||
|
||||
# focus-events for vim
|
||||
set-option -g focus-events on
|
||||
|
||||
# easy config reload
|
||||
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
|
||||
|
||||
# enable italics
|
||||
set -g default-terminal "tmux-256color"
|
||||
|
||||
# status bar style
|
||||
set -g status-style bg=black,fg=white
|
||||
set -g window-status-current-style bg=white,fg=black
|
||||
set -g status-position bottom
|
||||
set -g status-left ""
|
||||
set -g status-right "#(basename #S) [#(hostname)]"
|
||||
|
||||
# status bar
|
||||
set-option -g status-left '#{?window_name,#I:#W} #{T}'
|
||||
set-option -g status-position top
|
||||
|
||||
# remap prefix
|
||||
bind C-a send-prefix
|
||||
set-option -g prefix C-a
|
||||
unbind C-b
|
||||
|
||||
set -g base-index 1
|
||||
# organic jumping
|
||||
bind -n C-h select-window -t 1
|
||||
bind -n C-t select-window -t 2
|
||||
bind -n C-n select-window -t 3
|
||||
bind -n C-s select-window -t 4
|
||||
bind -T copy-mode-vi C-h select-window -t 1
|
||||
bind -T copy-mode-vi C-t select-window -t 2
|
||||
bind -T copy-mode-vi C-n select-window -t 3
|
||||
bind -T copy-mode-vi C-s select-window -t 4
|
||||
|
||||
# stop the clock madness
|
||||
unbind t
|
||||
|
||||
# vim-sytle pane jumping
|
||||
bind h select-pane -L
|
||||
bind l select-pane -R
|
||||
bind t select-pane -R
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
|
||||
# unbind built-in select-pane jumping
|
||||
unbind Left
|
||||
unbind Right
|
||||
unbind Down
|
||||
unbind Up
|
||||
|
||||
# improve window swapping
|
||||
bind C-l swap-window -t -1
|
||||
bind C-r swap-window -t +1
|
||||
|
||||
# escape delay
|
||||
set -s escape-time 0
|
||||
|
||||
# auto reorder window number
|
||||
set-option -g renumber-windows on
|
||||
|
||||
# Prime says the find window is for chumps. Don't use the find window
|
||||
bind-key -n C-f run-shell "tmux neww fish -c tmux_sessionizer"
|
||||
bind-key -n C-g run-shell "tmux neww fish -c tmux_home"
|
||||
|
||||
# fast kill
|
||||
bind-key k confirm-before kill-session
|
||||
|
||||
# global vi mode
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# who the fuck thought prefix-[ is a good idea ??!?!
|
||||
bind v copy-mode
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
|
||||
Loading…
Add table
Add a link
Reference in a new issue