aboutsummaryrefslogtreecommitdiff
path: root/scripts/check_os.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check_os.sh')
-rwxr-xr-xscripts/check_os.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/check_os.sh b/scripts/check_os.sh
index a538023..6b654af 100755
--- a/scripts/check_os.sh
+++ b/scripts/check_os.sh
@@ -18,14 +18,9 @@ set -euo pipefail
# Main loop of program
main() {
if [ "$(uname)" == "Darwin" ]; then
- bind -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
- unbind -T copy-mode-vi Enter
- bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy"
- set-option -g default-command "reattach-to-user-namespace -l zsh"
+ tmux source-file "$HOME/.tmux/tmux-darwin.config"
elif [ "$(uname)" == "Linux" ]; then
- 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"
+ tmux source-file "$HOME/.tmux/tmux-linux.config"
fi
}
main