Skip to content

Instantly share code, notes, and snippets.

@zxx
Forked from simme/Install_tmux
Last active January 14, 2017 04:50
Show Gist options
  • Save zxx/6436ba632a6b327dea6a1ae11d7ce0d9 to your computer and use it in GitHub Desktop.
Save zxx/6436ba632a6b327dea6a1ae11d7ce0d9 to your computer and use it in GitHub Desktop.
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
# Enable mouse support in ~/.tmux.conf
# set-option -g mouse-select-pane on
# set-option -g mouse-select-window on
# set-window-option -g mode-mouse on
# http://apple.stackexchange.com/questions/217166/unknown-option-mode-mouse-with-iterm-tmux
set-option -g mouse on
# Install Teamocil to pre define workspaces
https://github.com/remiprev/teamocil
# See http://files.floriancrouzat.net/dotfiles/.tmux.conf for configuration examples
@zxx
Copy link
Author

zxx commented Jan 14, 2017

启动鼠标滚动只需
echo "set-option -g mouse on" >> ~/.tmux.conf && tmux source-file ~/.tmux.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment