Skip to content

Instantly share code, notes, and snippets.

@samkhawase
Created December 14, 2023 08:35
Show Gist options
  • Save samkhawase/7509a68399abc30c299da95b3ca65edc to your computer and use it in GitHub Desktop.
Save samkhawase/7509a68399abc30c299da95b3ca65edc to your computer and use it in GitHub Desktop.
tmux config
set -g mouse on
setw -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
set-window-option -g mode-keys vi
bind-key C-b send-prefix
set-option -g history-limit 5000
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe 'reattach-to-user-namespace pbcopy' '\;' send -X clear-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
# bind -n C-k send-keys -R \; send-keys C-l \; clear-history
run-shell "powerline-daemon -q"
source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"
# Don't spawn a login shell
set -g default-command "${SHELL}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment