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