fixed ctrl-a beginning of line with tmux and disabled annoying mouse support. added some bash aliases, updated toprc

This commit is contained in:
jon
2023-01-07 20:36:34 -06:00
parent eae719cfb6
commit 90e3662622
5 changed files with 40 additions and 18 deletions

View File

@@ -7,11 +7,12 @@ set -s escape-time 0
#history limit
set-option -g history-limit 5000
#change C-b to Ca
#change default mapping
unbind C-b
set-option -g prefix C-a
#bind-key C-t send-prefix
bind-key -n C-s send-prefix
# allows "ctrl-a, a" to go to beginning of line like default bash ctrl-a
bind-key a send-prefix
# split panes using | and -
bind | split-window -h -c '#{pane_current_path}'
@@ -37,6 +38,13 @@ bind-key -n C-PageDown copy-mode
bind-key -T copy-mode C-PageUp send-keys -X page-up
bind-key -T copy-mode C-PageDown send-keys -X page-down
# switch in/out nested tmux with shift+up/down
bind -n S-up \
set -qg status-bg color7 \; \
set -qg prefix C-b
bind -n S-down \
set -qg status-bg color0 \; \
set -qg prefix C-a
#join window
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"