From 9272481b3c29165a2aa94c5dc8389e8d3b369c33 Mon Sep 17 00:00:00 2001 From: quak Date: Sun, 6 Oct 2024 23:55:56 +0200 Subject: [PATCH] unbound ctrl+[h,j,k,l] in .bashrc to use for navigation in tmux added ctrl+[h,j,k,l] to tmux.conf for navigating panes Please enter the commit message for your changes. Lines starting --- bashrc/.bashrc | 10 ++++++++-- tmux/.config/tmux/tmux.conf | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/bashrc/.bashrc b/bashrc/.bashrc index 27e9b52..dbd9b90 100644 --- a/bashrc/.bashrc +++ b/bashrc/.bashrc @@ -5,9 +5,15 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return +# unbind shortcuts with ctrl+vim-bindings for navigation in tmux +bind -r "\C-h" +bind -r "\C-j" +bind -r "\C-k" +bind -r "\C-l" + +# define aliases alias ls='ls -hal --color=auto' alias list='eza -lao --no-permissions --group-directories-first -s=ext --color=always --time-style long-iso' -# alias list='lsd -lA' alias grep='grep --color=auto' alias rg='rg --no-ignore -i -n -A 1 -B 1 --color=auto -e' @@ -35,4 +41,4 @@ source ~/collection/commands/colors.sh source ~/collection/commands/dunst.sh # source alias file -source ~/.bash_alias \ No newline at end of file +source ~/.bash_alias diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 69af903..4187d26 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -9,8 +9,13 @@ set-option -g prefix C-Space # general keybindings bind r source-file ~/.config/tmux/tmux.conf \; display-message "config reloaded" -bind -n S-Left previous-window -bind -n S-Right next-window +bind -n M-S-Left previous-window +bind -n M-S-Right next-window + +bind -n C-h select-pane -L +bind -n C-j select-pane -D +bind -n C-k select-pane -U +bind -n C-l select-pane -R # enable mouse support set -g mouse on