title: How to copy/paste from clipboard to tmux based on the OS version?
body: <p>I want to copy/paste to tmux based on the OS in which the .tmux.conf is loaded.</p>
  
  <p>I tried this, which does not give me any error but also does not work.</p>
  
  <pre><code>if "test $(expr substr $(uname -s) 1 6) == 'CYGWIN' -o $(expr substr $(uname -s) 1 10) == 'MINGW32_NT'" \
    "bind C-p run 'tmux set-buffer \'$(getclip)\'; tmux paste-buffer'"
  if "test $(expr substr $(uname -s) 1 5) == 'Linux'" \
    "bind C-p run 'tmux set-buffer \'$(xsel -o -b)\'; tmux paste-buffer'"
  </code></pre>