|
@@ -298,6 +298,9 @@ catclip(){ |
|
|
if iswindows |
|
|
if iswindows |
|
|
then |
|
|
then |
|
|
cat /dev/clipboard | tr -d \\r |
|
|
cat /dev/clipboard | tr -d \\r |
|
|
|
|
|
elif isdarwin |
|
|
|
|
|
then |
|
|
|
|
|
pbpaste |
|
|
else |
|
|
else |
|
|
xclip -o -selection "clipboard" |
|
|
xclip -o -selection "clipboard" |
|
|
fi |
|
|
fi |
|
@@ -312,6 +315,14 @@ setclip(){ |
|
|
else |
|
|
else |
|
|
cat "$@" | sed -e 's/$/\r/' | tee /dev/clipboard |
|
|
cat "$@" | sed -e 's/$/\r/' | tee /dev/clipboard |
|
|
fi |
|
|
fi |
|
|
|
|
|
elif isdarwin |
|
|
|
|
|
then |
|
|
|
|
|
if test $# -eq 0 |
|
|
|
|
|
then |
|
|
|
|
|
pbcopy |
|
|
|
|
|
else |
|
|
|
|
|
cat "$@" | pbcopy |
|
|
|
|
|
fi |
|
|
else |
|
|
else |
|
|
if test $# -eq 0 |
|
|
if test $# -eq 0 |
|
|
then |
|
|
then |
|
|