feat(tmux): add tmux-sessionizer to manage git sessions (#78)

Also made the following changes:

* update `docker`, `compose`, and `buildx`
* remove commented lines from `tmux` config
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
João Paulo Dubas 2024-09-29 12:34:50 +00:00 committed by João Paulo Dubas
parent f45a8a1ef6
commit 2b14724909
2 changed files with 9 additions and 45 deletions

View File

@ -105,11 +105,11 @@ RUN apt-get update \
&& echo 'permit persist :wheel as root' > /etc/doas.conf
# command line utilities
ENV DO_VERSION 27.1.1
ENV DO_VERSION 27.3.1
ENV DO_URL https://download.docker.com/linux/static/stable/x86_64/docker-${DO_VERSION}.tgz
ENV DC_VERSION v2.29.1
ENV DC_VERSION v2.29.7
ENV DC_URL https://github.com/docker/compose/releases/download/${DC_VERSION}/docker-compose-linux-x86_64
ENV BX_VERSION v0.16.2
ENV BX_VERSION v0.17.1
ENV BX_URL https://github.com/docker/buildx/releases/download/${BX_VERSION}/buildx-${BX_VERSION}.linux-amd64
RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes \
&& mkdir /tmp/download \
@ -162,7 +162,8 @@ ENV MISE_ENV_FILE .env
RUN curl https://mise.jdx.dev/install.sh | sh \
&& curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash \
&& curl -sS https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh | bash \
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm \
&& curl --proto '=https' --tlsv1.2 -LsSf https://github.com/jrmoulton/tmux-sessionizer/releases/download/v0.4.2/tmux-sessionizer-installer.sh | sh
# configure fish and bash
RUN fish -c true \

View File

@ -42,10 +42,6 @@ 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
@ -59,37 +55,10 @@ bind r source-file ~/.config/tmux/tmux.conf\; display "Reloaded conf."
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
# tms shortcuts
bind C-o display-popup -E "tms"
bind C-j display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
# buffer size
set -g history-limit 50000
@ -99,12 +68,6 @@ 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'