From 154a15d5c3afa693463587e8e5083297e40d89a6 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sat, 10 Jun 2017 20:03:11 -0600 Subject: Fixing up a couple small misses --- scripts/check_os.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/check_os.sh b/scripts/check_os.sh index e4abf85..a538023 100755 --- a/scripts/check_os.sh +++ b/scripts/check_os.sh @@ -18,16 +18,14 @@ set -euo pipefail # Main loop of program main() { if [ "$(uname)" == "Darwin" ]; then - # Setup 'v' to begin selection as in Vim bind -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" - # Update default binding of `Enter` to also use copy-pipe unbind -T copy-mode-vi Enter bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy" - # Allow pbcopy inside of session set-option -g default-command "reattach-to-user-namespace -l zsh" elif [ "$(uname)" == "Linux" ]; then - bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel "tmux save-buffer - | xp" - tmux source-file "$HOME/.tmux/linux.tmux.config" + bind -T copy-mode-vi y send -X copy-pipe-and-cancel "tmux save-buffer - | xp" + unbind -T copy-mode-vi Enter + bind-key -T copy-mode-vi Enter copy-pipe "tmux save-buffer - | xp" fi } main -- cgit v1.2.3