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:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user