chore: Updated tmux and wezterm 5434c94f
Steve · 2024-12-18 23:08 8 file(s) · +109 −0
tmux/.tmux.conf (added) +80 −0
1 +
set -g default-terminal "xterm-256color"
2 +
set-option -ga terminal-overrides ",xterm-256color:Tc"
3 +
set -ga terminal-overrides ",xterm-256color:Tc"
4 +
set-option -g default-shell /opt/homebrew/bin/nu
5 +
6 +
# action key
7 +
unbind C-b
8 +
set-option -g prefix C-q
9 +
set-option -g repeat-time 0
10 +
set -g @tpm-clean 'u'
11 +
bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt
12 +
set -g detach-on-destroy off  # don't exit from tmux when closing a session
13 +
14 +
# Plugins
15 +
set -g @plugin 'tmux-plugins/tpm'
16 +
set -g @plugin 'tmux-plugins/tmux-sensible'
17 +
# set -g @plugin 'joshmedeski/t-smart-tmux-session-manager'
18 +
set -g @plugin 'christoomey/vim-tmux-navigator'
19 +
# set -g @t-fzf-prompt '󰍉 '
20 +
21 +
bind-key "T" display-popup -E "sesh connect \"$(
22 +
  sesh list -i | gum filter --limit 1 --placeholder 'Choose a session' --height 50  --indicator.foreground="44" --selected-indicator.foreground="44" --prompt='⚡'
23 +
)\""
24 +
25 +
bind-key b set-option status
26 +
27 +
set-window-option -g mode-keys vi
28 +
29 +
# turn on mouse
30 +
set -g mouse on
31 +
32 +
#bind t send-key C-t
33 +
# Reload settings
34 +
bind r source-file ~/.tmux.conf \; display "Reloaded!"
35 +
# Open current directory
36 +
bind o run-shell "open #{pane_current_path}"
37 +
bind -r e kill-pane -a
38 +
39 +
# vim-like pane switching
40 +
bind -r k select-pane -U
41 +
bind -r j select-pane -D
42 +
bind -r h select-pane -L
43 +
bind -r l select-pane -R
44 +
45 +
# Moving window
46 +
bind-key -n C-S-Left swap-window -t -1 \; previous-window
47 +
bind-key -n C-S-Right swap-window -t +1 \; next-window
48 +
49 +
# Resizing pane
50 +
bind -r C-k resize-pane -U 5
51 +
bind -r C-j resize-pane -D 5
52 +
bind -r C-h resize-pane -L 5
53 +
bind -r C-l resize-pane -R 5
54 +
55 +
# Start windows and panes at 1, not 0
56 +
set -g base-index 1
57 +
set -g pane-base-index 1
58 +
set-window-option -g pane-base-index 1
59 +
set-option -g renumber-windows on
60 +
61 +
# Opens split panes in current path
62 +
bind '"' split-window -v -c "#{pane_current_path}"
63 +
bind % split-window -h -c "#{pane_current_path}"
64 +
65 +
66 +
#set-option utf8-default on
67 +
#set-option -g mouse-select-pane
68 +
set-window-option -g mode-keys vi
69 +
#set-window-option -g utf8 on
70 +
# look'n feel
71 +
set-option -g status-position "top"
72 +
set-option -g status-style bg=colour0,fg=default
73 +
set-option -g status-justify centre
74 +
set-option -g status-left '#[bg=default,fg=default,bold]#{?client_prefix,,    }#[bg=default,fg=colour3,bold]#{?client_prefix,    ,}'
75 +
set-option -g status-right '#S'
76 +
set-option -g window-status-format '#[bg=colour0,fg=colour2] 󰝣 #W '
77 +
set-option -g window-status-current-format '#[bg=colour0,fg=colour3] 󰝤 #W#{?window_zoomed_flag,  , }'
78 +
79 +
80 +
run '~/.tmux/plugins/tpm/tpm'
tmux/.tmux.conf.osx (added) +0 −0

Binary file — no preview.

+0 −0

Binary file — no preview.

+0 −0

Binary file — no preview.

+0 −0

Binary file — no preview.

+0 −0

Binary file — no preview.

+0 −0

Binary file — no preview.

wezterm/.wezterm.lua (added) +29 −0
1 +
local wezterm = require 'wezterm'
2 +
3 +
local config = {}
4 +
5 +
if wezterm.config_builder then
6 +
  config = wezterm.config_builder()
7 +
end
8 +
9 +
--config.color_scheme = "Poimandres"
10 +
config.color_scheme = 'Black Metal (Bathory) (base16)'
11 +
12 +
config.font = wezterm.font('CommitMono Nerd Font')
13 +
config.font_size = 14
14 +
15 +
16 +
config.enable_tab_bar = false
17 +
config.window_decorations = "RESIZE"
18 +
config.window_padding = {
19 +
  left = 10,
20 +
  right =10,
21 +
  top = 4,
22 +
  bottom = 4
23 +
}
24 +
25 +
config.initial_cols = 85
26 +
config.initial_rows = 30
27 +
28 +
29 +
return config