knowledge/technology/applications/cli/handlr.md
2023-12-04 11:02:23 +01:00

34 lines
No EOL
546 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
obj: application
os: linux
repo: https://github.com/chmln/handlr
---
# Handlr
Manage your default applications with ease using `handlr`!
Open files in default application:
```shell
handlr open <file>
```
List default apps:
```shell
handlr list
```
Get default app:
```sh
handlr get .png
```
Set default apps:
```sh
# Set default handler for png files
handlr set .png feh.desktop
# Set wildcard handler for all text files
handlr set 'text/*' nvim.desktop
# Set default handler based on mime
handlr set application/pdf evince.desktop
```