文件路径
- ~/.tmux.conf
文件内容
# Use vim keybindings in copy mode
setw -g mode-keys vi
# # Setup ‘v’ to begin selection as in Vim
# bind-key -t vi-copy v begin-selection
# bind-key -t vi-copy y copy-pipe “reattach-to-user-namespace pbcopy”
#
# # Update default binding ofEnter
to also use copy-pipe
# unbind -t vi-copy Enter
# bind-key -t vi-copy Enter copy-pipe “reattach-to-user-namespace pbcopy”
配置文件涵盖内容
- 把 tmux 的快捷键 设置成 相同于 vim 的
操作
- 杀死现有 tmux 进程: sudo pkill tmux
- 正常使用: tmux a