diff --git a/.tmux.conf b/.tmux.conf index 56df9d8..094eede 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -95,7 +95,3 @@ bind-key + resize-pane -U 3 set-window-option -g mode-keys vi # v and y like vi in copy-mode -#bind-key -T copy-mode-vi 'v' send -X begin-selection -#bind-key -T copy-mode-vi 'y' send -X copy-selection -bind -t vi-copy 'v' begin-selection -bind -t vi-copy 'y' copy-selection diff --git a/bootstrap_centos7.sh b/bootstrap_centos7.sh index 70465b2..e6fafce 100755 --- a/bootstrap_centos7.sh +++ b/bootstrap_centos7.sh @@ -83,9 +83,12 @@ for pkg in remote_pdb pdbpp; do done # 7. copy configuration for bash, git, tmux -sudo cp .bash_prompt ~/ -sudo cp .tmux.conf ~/ -sudo cp .gitconfig ~/ +cp .bash_prompt ~/ +cp .tmux.conf ~/ +# v and y like vi in copy-mode +echo "bind -t vi-copy 'v' begin-selection" >> ~/.tmux.conf +echo "bind -t vi-copy 'y' copy-selection" >> ~/.tmux.conf +cp .gitconfig ~/ echo '. ~/.bash_prompt' >> ~/.bashrc # 8. get my vim config diff --git a/bootstrap_ubuntu.sh b/bootstrap_ubuntu.sh index ba79a4d..24e57e8 100755 --- a/bootstrap_ubuntu.sh +++ b/bootstrap_ubuntu.sh @@ -57,9 +57,12 @@ sudo pip install pip --upgrade sudo pip install remote_pdb rainbow # 6. copy configuration for bash, git, tmux -sudo cp .bash_prompt ~/ -sudo cp .tmux.conf ~/ -sudo cp .gitconfig ~/ +cp .bash_prompt ~/ +cp .tmux.conf ~/ +# v and y like vi in copy-mode +echo "bind-key -T copy-mode-vi 'v' send -X begin-selection" >> ~/.tmux.conf +echo "bind-key -T copy-mode-vi 'y' send -X copy-selection" >> ~/.tmux.conf +cp .gitconfig ~/ echo '. ~/.bash_prompt' >> ~/.bashrc # 7. get my vim config