Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active November 18, 2022 15:34
Show Gist options
  • Save hardyscc/e9a77f09ea63fdfa787ff86d75b9c967 to your computer and use it in GitHub Desktop.
Save hardyscc/e9a77f09ea63fdfa787ff86d75b9c967 to your computer and use it in GitHub Desktop.
tmux config (need reattach-to-user-namespace for copy & paste on macos) https://tmuxcheatsheet.com/
# enable mouse support
set -g mouse on
# set default shell
set -g default-shell $SHELL
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# copy and paste
setw -g mode-keys vi
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# color theme
set -g default-terminal "xterm-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment