From 1b14f2ae98fe8c95d65ba2a5ef738bb85e39eca4 Mon Sep 17 00:00:00 2001
From: June McEnroe <june@causal.agency>
Date: Tue, 9 Feb 2021 18:12:16 -0500
Subject: Use w3m to open other URLs

---
 home/.local/bin/open | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'home')

diff --git a/home/.local/bin/open b/home/.local/bin/open
index 256a62e2..a1f57a1a 100755
--- a/home/.local/bin/open
+++ b/home/.local/bin/open
@@ -9,10 +9,7 @@ case "$1" in
 	(*.gif|*.jpeg|*.jpg|*.png)
 		curl -LSs "$1" | imv -
 		;;
-	(*.txt)
-		exec xterm -hold -e sh -c 'curl -LSs "$1" | $PAGER' - "$1"
-		;;
 	(*)
-		printf '%s' "$1" | pbcopy
+		exec xterm -e w3m "$1"
 		;;
 esac
-- 
cgit 1.4.1