.config directory

This commit is contained in:
Ian Keane 2022-06-07 13:17:40 -04:00
parent 66dffa8efe
commit d9d326eaa1
38 changed files with 5655 additions and 304 deletions

View file

@ -1,13 +1,13 @@
set-option -g default-shell /bin/zsh
set-option -g default-shell /usr/local/bin/fish
set -g default-terminal "screen-256color"
# set-window-option -g mode-keys vi
# # set-window-option -g mode-keys vi
set-window-option -g automatic-rename on
set-window-option mode-keys vi
# set-window-option -g automatic-rename on
set-window-option -g mode-keys vi
bind h split-window -h -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"
bind w new-window
# bind h split-window -h -c "#{pane_current_path}"
# bind v split-window -v -c "#{pane_current_path}"
# bind w new-window
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
@ -16,22 +16,11 @@ bind w new-window
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
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'
bind -n C-h run "($is_vim && tmux send-keys C-h) || \
tmux select-pane -L"
bind -n C-j run "($is_vim && tmux send-keys C-j) || \
($is_fzf && tmux send-keys C-j) || \
tmux select-pane -D"
bind -n C-k run "($is_vim && tmux send-keys C-k) || \
($is_fzf && tmux send-keys C-k) || \
tmux select-pane -U"
bind -n C-l run "($is_vim && tmux send-keys C-l) || \
tmux select-pane -R"
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
@ -42,7 +31,20 @@ bind -n C-S-Space previous-window
bind -n C-Space next-window
# Remove escape delay
set -s escape-time 0
set -g escape-time 0
# Enable mouse scroll
set -g mouse on
set-option -g status-right-length 140
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]"
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)'"