From 1f6bf9e9c88d46ed3422f1bcba52614801da4fc2 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Tue, 5 Nov 2024 01:02:29 +0100 Subject: [PATCH] tmux: Changed loading of plugins --- .config/tmux/tmux.conf | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 2f60ad3..d894059 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -29,7 +29,11 @@ bind -n M-Down select-pane -D set -g mouse on set -g default-terminal "tmux-256color" -run $XDG_CONFIG_HOME/tmux/plugins/tmux/catppuccin.tmux +# Ensure and load TPM +if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm && $XDG_CONFIG_HOME/tmux/plugins/tpm/bin/install_plugins'" + +run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm # Configure the catppuccin plugin set -g @catppuccin_flavor "macchiato" @@ -47,12 +51,4 @@ set -g status-right "#{E:@catppuccin_status_application}" set -ag status-right "#{E:@catppuccin_status_session}" set -ag status-right "#{E:@catppuccin_status_uptime}" # set -agF status-right "#{E:@catppuccin_status_battery}" -set -agF status-right "#{@catppuccin_status_host}" - - - -# Ensure and load TPM -if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ - "run 'git clone https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm && $XDG_CONFIG_HOME/tmux/plugins/tpm/bin/install_plugins'" - -run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm \ No newline at end of file +set -agF status-right "#{@catppuccin_status_host}" \ No newline at end of file