In addition to upgrading ubuntu to 23.10, the following changes were made: 1. Use the latest commit from [kickstart.nvim][0] 2. Setup [atuin][1] to share `shell` history 3. Conditionally configure `git`, based on [`gitbutler` blog post][2] 4. Improve `tmux` colorscheme configuration, based on [tmux vim truecolor git by andersevenrud][3] 5. Update cli's installed by `mise`: * awscli to 2.15.30 * dagger to 0.10.2 * elixir to 1.16.2 * erlang to 26.2.3 * eza to 0.18.7 * fzf to 0.48.1 * go to 1.22.1 * helm to 3.14.3 * kubectl to 1.29.3 * lefthook to 1.6.7 * node to 21.7.1 * poetry to 1.8.2 * python to 3.12.2 * terraform to 1.7.5 * tilt to 0.33.11 * usql to 0.17.5 * zoxide to 0.9.4 6. Added the cli's: * k3sup * k9s * rust [0]: https://github.com/nvim-lua/kickstart.nvim [1]: https://github.com/atuinsh/atuin [2]: https://blog.gitbutler.com/git-tips-1-theres-a-git-config-for-that/#conditional-configs [3]: https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6 Reviewed-on: #30 Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
111 lines
2.7 KiB
Bash
111 lines
2.7 KiB
Bash
# Based on:
|
|
# https://github.com/henrik/dotfiles/blob/master/tmux.conf
|
|
|
|
# Remap Prefix to C-a
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
|
|
# Improve pane split
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
|
|
# Improve pane move
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# Improve window move
|
|
bind -r C-h select-window -t :-
|
|
bind -r C-l select-window -t :+
|
|
|
|
# Improve resize pane
|
|
bind -r H resize-pane -L 5
|
|
bind -r J resize-pane -D 5
|
|
bind -r K resize-pane -U 5
|
|
bind -r L resize-pane -R 5
|
|
|
|
# Enable vim keys
|
|
set-window-option -g mode-keys vi
|
|
|
|
# Make [shift]-arrows, [ctrl]-arrows, etc work in vim
|
|
set -g xterm-keys on
|
|
|
|
# Attempt to fixes slows [esc] issues
|
|
set -s escape-time 0
|
|
|
|
# Disable mouse
|
|
# set -g mode-mouse off
|
|
|
|
# Status bar styling and content
|
|
set -g status-bg black
|
|
set -g status-fg white
|
|
# set -g status-left "#$"
|
|
|
|
# Highlight the active window in the status bar
|
|
set-window-option -g window-status-current-bg yellow
|
|
set-window-option -g window-status-current-fg black
|
|
|
|
# Don't prompt to kill panes/windows
|
|
bind-key x kill-pane
|
|
bind-key & kill-window
|
|
|
|
# Reload tmux conf
|
|
unbind r
|
|
bind r source-file ~/.config/tmux/tmux.conf\; display "Reloaded conf."
|
|
|
|
# Full color for vim
|
|
# based on https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
|
|
set -g default-terminal "tmux-256color"
|
|
set -sg terminal-overrides ",*:RGB"
|
|
|
|
#### COLOUR (Solarized 256)
|
|
|
|
# default statusbar colors
|
|
set-option -g status-bg colour235 #base02
|
|
set-option -g status-fg colour136 #yellow
|
|
set-option -g status-attr default
|
|
|
|
# default window title colors
|
|
set-window-option -g window-status-fg colour244 #base0
|
|
set-window-option -g window-status-bg default
|
|
#set-window-option -g window-status-attr dim
|
|
|
|
# active window title colors
|
|
set-window-option -g window-status-current-fg colour166 #orange
|
|
set-window-option -g window-status-current-bg default
|
|
#set-window-option -g window-status-current-attr bright
|
|
|
|
# pane border
|
|
set-option -g pane-border-fg colour235 #base02
|
|
set-option -g pane-active-border-fg colour240 #base01
|
|
|
|
# message text
|
|
set-option -g message-bg colour235 #base02
|
|
set-option -g message-fg colour166 #orange
|
|
|
|
# pane number display
|
|
set-option -g display-panes-active-colour colour33 #blue
|
|
set-option -g display-panes-colour colour166 #orange
|
|
|
|
# clock
|
|
set-window-option -g clock-mode-colour colour64 #green
|
|
|
|
# buffer size
|
|
set -g history-limit 50000
|
|
|
|
# list plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'fabioluciano/tmux-tokyo-night'
|
|
set -g @plugin 'Morantron/tmux-fingers'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
# configure resurrect/continuum
|
|
set -g @continuum-save-interval '15'
|
|
set -g @continuum-restore 'on'
|
|
|
|
# load/install plugins
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|