diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-03-01 12:45:46 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-03-01 12:45:46 +0100 |
commit | 73e46ce273334f7252c2b783796b52457e402d8b (patch) | |
tree | 27976fe198aa7f0a5e0049bc52832a40dec08988 /fb.in | |
parent | 762684c0e4ecab0f50f5d79bb9e961716ccff74e (diff) |
use pbcopy instead of xclip on Darwin
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.in')
-rw-r--r-- | fb.in | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -288,7 +288,11 @@ else fi if [ "$CLIPBOARD" != "" ]; then - type xclip >/dev/null 2>&1 && echo -n $CLIPBOARD | nohup xclip >/dev/null 2>&1 + case "`uname -s`" in + Darwin) CLIPBOARD_CMD=pbcopy;; + *) CLIPBOARD_CMD=xclip;; + esac + type $CLIPBOARD_CMD >/dev/null 2>&1 && echo -n $CLIPBOARD | nohup $CLIPBOARD_CMD >/dev/null 2>&1 fi exit $EXITCODE |