bin: adjust pbcopy/pbpaste for BSD/Linux/mac
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$(uname)" != "Linux" ] ; then
|
OS=$(uname)
|
||||||
|
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
|
||||||
|
xsel -i -b
|
||||||
|
elif [ "$(uname)" == "Darwin" ] ; then
|
||||||
/usr/bin/pbcopy $*
|
/usr/bin/pbcopy $*
|
||||||
|
else
|
||||||
|
echo "Unknown OS."
|
||||||
fi
|
fi
|
||||||
xsel -i -b
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$(uname)" != "Linux" ] ; then
|
OS=$(uname)
|
||||||
|
if [ "$OS" == "Linux" -o "$OS" == "FreeBSD" ] ; then
|
||||||
|
xsel -o -b
|
||||||
|
elif [ "$(uname)" == "Darwin" ] ; then
|
||||||
/usr/bin/pbpaste $*
|
/usr/bin/pbpaste $*
|
||||||
|
else
|
||||||
|
echo "Unknown OS."
|
||||||
fi
|
fi
|
||||||
xsel -o -b
|
|
||||||
|
|||||||
Reference in New Issue
Block a user