10 lines
174 B
Bash
Executable File
10 lines
174 B
Bash
Executable File
#!/bin/sh
|
|
OS=$(uname)
|
|
if [ "$OS" = "Linux" -o "$OS" = "FreeBSD" ] ; then
|
|
xsel -i -b
|
|
elif [ "$(uname)" = "Darwin" ] ; then
|
|
/usr/bin/pbcopy $*
|
|
else
|
|
echo "Unknown OS."
|
|
fi
|