aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-02-20 09:09:22 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-02-20 09:09:22 +0100
commit6ed420bf6d558126a8e1ec04cd74a2f237074e2d (patch)
tree9fc9c5181a8369598f168ee16c95539b339c11e5 /.local
parent72f43a2228a88c093ae9b41b4dfe753a5f1c27af (diff)
Add special case for pdf files
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/open1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/open b/.local/bin/open
index 381bd25..c34bcea 100755
--- a/.local/bin/open
+++ b/.local/bin/open
@@ -56,6 +56,7 @@ multi sub cmd (HttpUrl $t) { "%*ENV<BROWSER> '$t'" }
# Local files
#
+multi sub cmd (IO::Path $t where { $_.f && $_.extension eq 'pdf' }) { "zathura '$t'" }
multi sub cmd (IO::Path $t where { $_.f && $_.extension }) { "pygmentize '$t' | less -R +k" }
multi sub cmd (IO::Path $t where { $_.f }) { "less -R +k '$t'" }