From eafd3c62a4fb9803ce3b1c58ba0ddf9302109cc3 Mon Sep 17 00:00:00 2001 From: Eduardo Cueto-Mendoza Date: Mon, 20 Jan 2025 23:26:30 +0000 Subject: [PATCH] Add tmux config --- .config/tmux/.gitignore | 1 + .config/tmux/tmux.conf | 50 +++++++++++++++++++++++++++++++++++++++++ .zshrc | 35 +++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 .config/tmux/.gitignore create mode 100755 .config/tmux/tmux.conf diff --git a/.config/tmux/.gitignore b/.config/tmux/.gitignore new file mode 100644 index 0000000..16873f6 --- /dev/null +++ b/.config/tmux/.gitignore @@ -0,0 +1 @@ +plugins/ diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100755 index 0000000..708a010 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,50 @@ +# Neovim required +set-option -g focus-events on +set-option -a terminal-features 'alacritty:RGB' +set-option -sa terminal-overrides ",xterm*:Tc" + +#set -g default-terminal "screen-256color" +set-window-option -g mode-keys vi + +# Copy as in vim +bind-key -T copy-mode-vi 'v' send -X begin-selection +bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel + +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# split panes using v and f +bind v split-window -h -c "#{pane_current_path}" +bind b split-window -v -c "#{pane_current_path}" +unbind '"' +unbind % + +# reload config file (change file location to your the tmux.conf you want to use) +bind r source-file ~/.tmux.conf + +# vi-like keybindings +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Navigate with Alt+Shift+{h,l} windows +bind -n M-H previous-window +bind -n M-L next-window + +# fancy status line: user@host, date, time +set-option -g status-right "#(whoami)@#(hostname -s) #[fg=colour187,bold]%a %Y-%m-%d %H:%M" +set -g status-right-length 50 +set -g status-left-length 20 + +# List of plugins +set -g @plugin "tmux-plugins/tpm" +set -g @plugin "tmux-plugins/tmux-sensible" +set -g @plugin "christoomey/vim-tmux-navigator" +set -g @plugin "catppucchin/tmux" + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' diff --git a/.zshrc b/.zshrc index fde0067..6dcdfd2 100644 --- a/.zshrc +++ b/.zshrc @@ -93,6 +93,41 @@ zstyle ":completion:*" list-colors "${(s.:.)LS_COLORS}" #zstyle ":fzf-tab:*" switch-group "<" ">" #zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup +# PATH +# Local PATH +export PATH=$PATH:$HOME/.local/bin + +# Mason PATH +export PATH=$PATH:$HOME/.local/share/nvim/mason/bin + +# sbin PATH +export PATH=$PATH:/sbin +export PATH=$PATH:/usr/sbin + +# Rust +export PATH=$PATH:/usr/local/share/cargo/bin + +# Android +export PATH=$PATH:/usr/share/android-tools + +# rocm +export PATH=$PATH:/opt/rocm/bin + +# Java +#export PATH=$PATH:/usr/local/jdk-21/bin + +# Ltex-LS +#export PATH=$PATH:/usr/local/share/ltex-ls-16.0.0/bin + +# pyenv +export PYENV_ROOT=/usr/share/pyenv +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init - zsh)" +eval "$(pyenv virtualenv-init -)" + +# Zig +export PATH=$PATH:/usr/share/zig + # VARIABLES # For Torch export HSA_OVERRIDE_GFX_VERSION="10.3.0"