add .tmux.conf

This commit is contained in:
youngcw 2024-02-08 14:45:12 -07:00
parent 0b907c80de
commit d129f4ea5b
2 changed files with 41 additions and 2 deletions

View File

@ -5,8 +5,7 @@ alias vi='vim'
alias clc='clear'
alias a='acpi'
alias su='sudo -i'
#alias matlab='matlab -nodesktop'
alias gist='git status'
alias src='source ~/.bashrc'
alias apt=nala
alias sudo='sudo '
alias sudo='sudo ' # allow more aliases after using sudo

40
.tmux.conf Normal file
View File

@ -0,0 +1,40 @@
# modify prefix from C-b to C-f
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
# modify pane change
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
#modify split commands
bind r split-window -h
unbind '"'
bind b split-window -v
unbind '%'
#modify new window
unbind 'c'
bind w new-window
#change session
#unbind 's'
#bind c change-session
#modify paste mode entry
bind Space copy-mode
#relod config
bind z source-file ~/.tmux.conf
#clear history
bind c clear-history
#bigger buffer
set-option -g history-limit 5000
set-window-option -g mode-keys vi
#bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'