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
This commit is contained in:
quak
2024-10-06 23:55:56 +02:00
parent e9d3755248
commit 9272481b3c
2 changed files with 15 additions and 4 deletions

View File

@@ -5,9 +5,15 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *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 ls='ls -hal --color=auto'
alias list='eza -lao --no-permissions --group-directories-first -s=ext --color=always --time-style long-iso' 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 grep='grep --color=auto'
alias rg='rg --no-ignore -i -n -A 1 -B 1 --color=auto -e' 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 ~/collection/commands/dunst.sh
# source alias file # source alias file
source ~/.bash_alias source ~/.bash_alias

View File

@@ -9,8 +9,13 @@ set-option -g prefix C-Space
# general keybindings # general keybindings
bind r source-file ~/.config/tmux/tmux.conf \; display-message "config reloaded" bind r source-file ~/.config/tmux/tmux.conf \; display-message "config reloaded"
bind -n S-Left previous-window bind -n M-S-Left previous-window
bind -n S-Right next-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 # enable mouse support
set -g mouse on set -g mouse on