2022-06-07 13:17:40 -04:00
|
|
|
set-option -g default-shell /usr/local/bin/fish
|
2021-03-15 19:09:16 +00:00
|
|
|
set -g default-terminal "screen-256color"
|
2022-06-07 13:17:40 -04:00
|
|
|
# # set-window-option -g mode-keys vi
|
2020-02-10 12:55:17 -08:00
|
|
|
|
2022-06-07 13:17:40 -04:00
|
|
|
# set-window-option -g automatic-rename on
|
|
|
|
|
set-window-option -g mode-keys vi
|
2020-02-18 14:21:14 -05:00
|
|
|
|
2022-06-07 13:17:40 -04:00
|
|
|
# bind h split-window -h -c "#{pane_current_path}"
|
|
|
|
|
# bind v split-window -v -c "#{pane_current_path}"
|
|
|
|
|
# bind w new-window
|
2020-02-10 12:55:17 -08:00
|
|
|
|
|
|
|
|
# Smart pane switching with awareness of Vim splits.
|
|
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
|
|
|
|
# Adapted to avoid fzf conflicts
|
|
|
|
|
|
|
|
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
|
|
|
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
|
|
|
|
|
2022-06-07 13:17:40 -04:00
|
|
|
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
|
|
|
|
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
|
|
|
|
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
|
|
|
|
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
2020-02-10 12:55:17 -08:00
|
|
|
|
|
|
|
|
|
2020-02-24 20:27:04 -05:00
|
|
|
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
2020-02-18 14:21:14 -05:00
|
|
|
|
|
|
|
|
bind a resize-pane -Z
|
|
|
|
|
|
|
|
|
|
# Shift arrow to switch windows
|
|
|
|
|
bind -n C-S-Space previous-window
|
|
|
|
|
bind -n C-Space next-window
|
2020-02-25 13:27:08 -05:00
|
|
|
|
|
|
|
|
# Remove escape delay
|
2022-06-07 13:17:40 -04:00
|
|
|
set -g escape-time 0
|
2021-11-06 14:28:39 -04:00
|
|
|
|
|
|
|
|
# Enable mouse scroll
|
|
|
|
|
set -g mouse on
|
2022-06-07 13:17:40 -04:00
|
|
|
|
|
|
|
|
set-option -g status-right-length 140
|
2022-06-25 06:10:37 -04:00
|
|
|
set-option -g status-right "#(curl 'wttr.in/?format=%%c%%t%%20')|#[bg=default] %a %l:%M %p#[default]#(curl 'wttr.in/?format=%%20%%m%%20(%%M)') |#(sugar --tmux)#[bg=default]"
|
2022-06-07 13:17:40 -04:00
|
|
|
|
|
|
|
|
set-option -g status-left-length 140
|
|
|
|
|
set-option -g status-left " Session: #[bold,fg=green,bg=black] #S #[fg=black,bg=green] "
|
|
|
|
|
|
|
|
|
|
set-option -g status-justify centre
|
|
|
|
|
set-option -g window-status-current-format '#[bold,fg=green,bg=black] #{window_name} '
|
|
|
|
|
set-option -g window-status-format '#{window_name}'
|
|
|
|
|
|
|
|
|
|
bind t popup "tmux new-session -A -s tasks 'vit list'"
|
|
|
|
|
bind j popup "tmux new-session -A -s jira 'jira issue list -a(jira me)'"
|