Skip to content

Instantly share code, notes, and snippets.

@shankara-n
Last active March 21, 2023 03:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shankara-n/7a098b146e82efcac7c0259197e359a3 to your computer and use it in GitHub Desktop.
Save shankara-n/7a098b146e82efcac7c0259197e359a3 to your computer and use it in GitHub Desktop.
Tmux Conf for Kali Linux
# SHORCUTS
# Ctrl - T new vertical pane
# Ctrl + U new hroizontal plane
# Alt + P kill pane
# Alt + W kill window
# Alt + P kill session
# Page Up / Page Down - shift windows
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g history-limit 100000
# move left right a word by using ctrl and arrow keys
set-window-option -g xterm-keys on
set -g mode-keys vi
setw -g mouse on
setw -g monitor-activity on
bind-key -n C-t split-window -h -c '#{pane_current_path}'
bind-key -n C-u split-window -v -c '#{pane_current_path}'
bind c new-window -c '#{pane_current_path}'
# Use Shift-arrow keys without prefix key to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Shift arrow to switch windows
bind -n Pageup previous-window
bind -n Pagedown next-window
bind-key -n M-s confirm kill-session
bind-key -n M-w confirm kill-window
bind-key -n M-p kill-pane
bind-key -n M-l clear-history
# save scrollback history of pane to a file
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S$
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# reload config
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment