diff options
Diffstat (limited to 'scripts/check_os.sh')
-rwxr-xr-x | scripts/check_os.sh | 8 |
1 files changed, 3 insertions, 5 deletions
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 |