diff options
-rwxr-xr-x | mac.tmux.config | 9 | ||||
-rwxr-xr-x | scripts/check_os.sh | 8 |
2 files changed, 3 insertions, 14 deletions
diff --git a/mac.tmux.config b/mac.tmux.config deleted file mode 100755 index 110f8ff..0000000 --- a/mac.tmux.config +++ /dev/null @@ -1,9 +0,0 @@ -# vim: syntax=conf - -# 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 send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" -# Allow pbcopy inside of session -set-option -g default-command "reattach-to-user-namespace -l zsh" 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 |