home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

pbcopy (204B)


      1 #!/usr/bin/env bash
      2 set -e
      3 if [ ! $(uname -s) = "Darwin" ]; then
      4     if command -v wl-copy  &> /dev/null; then
      5         wl-copy $@
      6     else
      7         xsel --clipboard --input $@
      8     fi
      9 else
     10     pbcopy $@
     11 fi