Skip to content

Instantly share code, notes, and snippets.

@Jasemalsadi
Last active November 5, 2019 19:41
Show Gist options
  • Save Jasemalsadi/47be1ee676f3467b2bde7f1cbd7a6940 to your computer and use it in GitHub Desktop.
Save Jasemalsadi/47be1ee676f3467b2bde7f1cbd7a6940 to your computer and use it in GitHub Desktop.
My tmux config for the kali 2018
# tmux 2.4+
set -g default-terminal "screen-256color"
# Change prefix key
set -g prefix C-a
bind C-a send-prefix
unbind C-a
set -g history-limit 10000
set -g allow-rename off
# tmux logging config
run-shell ~/.tmux/plugins/tmux-logging/logging.tmux
# Logging Plugin
set -g @plugin 'tmux-plugins/tmux-logging'
# Copy tmux buffer to sytem clipboard
set-window-option -g mode-keys vi
# vi-style copying
bind-key -T copy-mode-vi 'v' send -X begin-selection
# Here we move copy the data to clipboard using 'y' character, we did it using xclip, we copy tmux buffer to xclip to primary buffer (vmare buffer ) and then return the copied data to the pipe (using -f) to copy it to the clipboard buffer of the kali
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -in -selection p -f | xclip -selection c"
#bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
#bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel "xclip -sel clip -i"
#set -g mouse on
# Tmux plugin manager config
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment