From faf7b8b68b0fe03cef8312a16b3b90a8124a5419 Mon Sep 17 00:00:00 2001 From: thek4n Date: Sat, 30 Mar 2024 21:04:05 +0300 Subject: [PATCH] tmux plugins --- .gitignore | 1 + home/user/.config/tmux/options.conf | 6 +++--- home/user/.config/tmux/plugins.conf | 5 +++++ home/user/.config/tmux/tmux.conf | 5 ++++- install | 4 ++-- install-hooks/tmux/post-install | 3 +++ 6 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 home/user/.config/tmux/plugins.conf create mode 100755 install-hooks/tmux/post-install diff --git a/.gitignore b/.gitignore index 849485f..a470196 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,6 @@ lazy-lock.json home/user/.config/ranger/plugins home/user/.termux/shell +home/user/.config/tmux/plugins home/user/.tmux/* !home/user/.tmux/01.sh \ No newline at end of file diff --git a/home/user/.config/tmux/options.conf b/home/user/.config/tmux/options.conf index 88a574c..959c183 100644 --- a/home/user/.config/tmux/options.conf +++ b/home/user/.config/tmux/options.conf @@ -7,9 +7,9 @@ set -g mouse on # Enable mouse support set -s escape-time 0 # Delay after escape set -g repeat-time 0 # Disable multiple commands after prefix-key -set -g base-index 1 # Window numbering starts at 1 -set -g pane-base-index 1 # Pane numbering starts at 1 -set -g renumber-windows on # Make windows auto renumber +set -g base-index 1 # Window numbering starts at 1 +set -g pane-base-index 1 # Pane numbering starts at 1 +set -g renumber-windows off # Off windows auto renumber set -g history-limit 100000 # Scroll back history diff --git a/home/user/.config/tmux/plugins.conf b/home/user/.config/tmux/plugins.conf new file mode 100644 index 0000000..c074e96 --- /dev/null +++ b/home/user/.config/tmux/plugins.conf @@ -0,0 +1,5 @@ +# Tmux plugins + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'laktak/extrakto' +set -g @plugin 'sainnhe/tmux-fzf' \ No newline at end of file diff --git a/home/user/.config/tmux/tmux.conf b/home/user/.config/tmux/tmux.conf index b73045d..eeeb268 100644 --- a/home/user/.config/tmux/tmux.conf +++ b/home/user/.config/tmux/tmux.conf @@ -2,4 +2,7 @@ source-file "$HOME/.config/tmux/mappings.conf" source-file "$HOME/.config/tmux/options.conf" -source-file "$HOME/.config/tmux/style.conf" \ No newline at end of file +source-file "$HOME/.config/tmux/style.conf" +source-file "$HOME/.config/tmux/plugins.conf" + +run -b "$HOME/.config/tmux/plugins/tpm/tpm" \ No newline at end of file diff --git a/install b/install index da517eb..a0bd44a 100755 --- a/install +++ b/install @@ -10,9 +10,9 @@ declare -xr SUB="$DOTFILES_ROOT/home/user" declare -r -A TARGETS=( ["colors"]=".config/terminal-colors.d" - ["bash"]=".config/bash .bashrc .profile %colors" - ["zsh"]="%bash .config/zsh .zshenv .inputrc" ["tmux"]=".config/tmux .tmux" + ["bash"]=".config/bash .bashrc .profile %colors" + ["zsh"]="%tmux %bash .config/zsh .zshenv .inputrc" ["alacritty"]=".config/alacritty" ["nvim"]=".config/nvim .editorconfig .local/bin/vim_askpass_helper" ["ssh"]="" diff --git a/install-hooks/tmux/post-install b/install-hooks/tmux/post-install new file mode 100755 index 0000000..95703a4 --- /dev/null +++ b/install-hooks/tmux/post-install @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +git clone https://github.com/tmux-plugins/tpm "$HOME/.config/tmux/plugins/tpm" \ No newline at end of file