From d8846adcdfcb6b8e5f86cdc80274b799f4588feb Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Aug 2020 20:29:53 +0200 Subject: Added some colourful output (only one, though) --- opener | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'opener') diff --git a/opener b/opener index bfb2bb5..d9160fb 100755 --- a/opener +++ b/opener @@ -1,8 +1,8 @@ #!/bin/sh case "$1" in - application/pdf) exec zathura "$2";; - image/*) exec sxiv "$2";; - text/html) exec ./viewhtml "$2" "";; - text/*) exec less "$2";; - *) echo $1 $2;; + application/pdf) exec zathura "$3";; + image/*) exec sxiv "$3";; + text/html) exec ./viewhtml "$3" "$2";; + text/*) exec less "$3";; + *) echo "\e[31m$1\e[0m $2 $3";; esac -- cgit v1.1