Use System Clipboard for Vi Copy Mode in Tmux in macOS and Linux
Since I sync my dotfiles through GitHub, I wanted to implement something that will work on both macOS and Linux. Enter if-shell, which is documented in tmux’s man page: In short, you can run...