Skip to content

How to have multiple fallback commands with piper #108

Closed Locked Answered by sxyazi
aik2mlj asked this question in 1. Q&A
Discussion options

You must be logged in to vote

run is a plugin command, not a shell command.

piper is a plugin that turns shell output into preview content, which accepts a shell command, hence you need:

{ name = "*.html", run = 'piper -- (command -v cha >/dev/null 2>&1 && cha -d "$1") || w3m -dump "$1"' }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aik2mlj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants