From 962546b8301471c5d234fec95bd5bcf083312ad1 Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
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