Add tmux config

This commit is contained in:
Eduardo Cueto-Mendoza 2025-01-20 23:26:30 +00:00
parent e195bf8153
commit eafd3c62a4
Signed by: TastyPancakes
GPG Key ID: 941DF56C7242C3F1
3 changed files with 86 additions and 0 deletions

1
.config/tmux/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
plugins/

50
.config/tmux/tmux.conf Executable file
View File

@ -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'

35
.zshrc
View File

@ -93,6 +93,41 @@ zstyle ":completion:*" list-colors "${(s.:.)LS_COLORS}"
#zstyle ":fzf-tab:*" switch-group "<" ">" #zstyle ":fzf-tab:*" switch-group "<" ">"
#zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup #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 # VARIABLES
# For Torch # For Torch
export HSA_OVERRIDE_GFX_VERSION="10.3.0" export HSA_OVERRIDE_GFX_VERSION="10.3.0"