knowledge/technology/applications/cli/handlr.md

34 lines
536 B
Markdown
Raw Normal View History

2023-12-04 10:02:23 +00:00
---
obj: application
repo: https://github.com/chmln/handlr
---
2024-03-19 08:25:42 +00:00
2023-12-04 10:02:23 +00:00
# Handlr
2024-01-17 08:44:04 +00:00
Manage your default applications with ease using `handlr`!
2023-12-04 10:02:23 +00:00
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
```