Skip to content

Commit

Permalink
Fix osx copy-paste solution breaking linux tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Jul 17, 2017
1 parent 6fc8fd6 commit 141e953
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions common-setup/setup.sh
Expand Up @@ -28,6 +28,11 @@ ln -sf "$SCRIPT_DIR"/gitignore_global "$DEST"/.gitignore_global
ln -sf "$SCRIPT_DIR"/pystartup "$DEST"/.pystartup
ln -sf "$SCRIPT_DIR"/tmux.conf "$DEST"/.tmux.conf

# create needed dirs
[[ ! -e "$DEST/.tmux" ]] && mkdir "$DEST/.tmux";
[[ ! -e "$DEST/.tmux/plugins" ]] && mkdir "$DEST/.tmux/plugins";
[[ ! -e "$DEST/.tmux/plugins/tpm" ]] && git clone https://github.com/tmux-plugins/tpm "$DEST"/.tmux/plugins/tpm

for file in "$SCRIPT_DIR"/bash.d/*; do
ln -sf "$file" "${BASH_DIR}"/
done
Expand Down
14 changes: 12 additions & 2 deletions common-setup/tmux.conf
Expand Up @@ -33,5 +33,15 @@ bind -t vi-copy y copy-selection
# avoid annoying delay in VIM
set -s escape-time 0
# enable copy paste in osx
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# List of plugins - press <prefix>+I to fetch and install
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank' # enable copy paste in osx, linux, cygwin
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

0 comments on commit 141e953

Please sign in to comment.