From fdd8e2c3f7721b7f5d9365590d9bb4df5e8490d5 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 17 Feb 2021 22:27:45 -0500 Subject: Just use pbcopy in up I have a generic pbcopy wrapper now. --- bin/up.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/up.sh b/bin/up.sh index 9cb77a2b..f55213d4 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -62,14 +62,6 @@ uploadTerminal() { upload "${temp}/term.html" } -copy() { - if type xsel >/dev/null; then - xsel -bi - else - pbcopy - fi -} - while getopts 'chst' opt; do case "$opt" in (c) fn=uploadCommand;; @@ -84,5 +76,5 @@ shift $((OPTIND - 1)) : ${fn:=upload} url=$($fn "$@") -printf '%s' "$url" | copy || true +printf '%s' "$url" | pbcopy || true echo "$url" -- cgit 1.4.1