summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-03-01 12:45:46 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-03-01 12:45:46 +0100
commit73e46ce273334f7252c2b783796b52457e402d8b (patch)
tree27976fe198aa7f0a5e0049bc52832a40dec08988 /fb.in
parent762684c0e4ecab0f50f5d79bb9e961716ccff74e (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.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index 19cba7a..c211d83 100644
--- a/fb.in
+++ b/fb.in
@@ -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