summaryrefslogtreecommitdiff
path: root/opener
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-06 20:29:53 +0200
committerAki <please@ignore.pl>2020-08-06 20:29:53 +0200
commitd8846adcdfcb6b8e5f86cdc80274b799f4588feb (patch)
treeb484817ec347d674f2423b25ecca17e48396f284 /opener
parent71f20fb4dc2ebda1bef2e0621d9105fbe589d2e4 (diff)
downloadbrowse-d8846adcdfcb6b8e5f86cdc80274b799f4588feb.zip
browse-d8846adcdfcb6b8e5f86cdc80274b799f4588feb.tar.gz
browse-d8846adcdfcb6b8e5f86cdc80274b799f4588feb.tar.bz2
Added some colourful output (only one, though)
Diffstat (limited to 'opener')
-rwxr-xr-xopener10
1 files changed, 5 insertions, 5 deletions
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