mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 17:50:28 +00:00
Update cheatsheets
This commit is contained in:
33
linux/handlr
Normal file
33
linux/handlr
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# handlr
|
||||
|
||||
> Manage your default applications.
|
||||
> More information: <https://github.com/chmln/handlr>.
|
||||
|
||||
- Open a URL in the default application:
|
||||
|
||||
`handlr open {{https://example.com}}`
|
||||
|
||||
- Open a PDF in the default PDF viewer:
|
||||
|
||||
`handlr open {{path/to/file.pdf}}`
|
||||
|
||||
- Set `imv` as the default application for PNG files:
|
||||
|
||||
`handlr set {{.png}} {{imv.desktop}}`
|
||||
|
||||
- Set MPV as the default application for all audio files:
|
||||
|
||||
`handlr set {{'audio/*'}} {{mpv.desktop}}`
|
||||
|
||||
- List all default apps:
|
||||
|
||||
`handlr list`
|
||||
|
||||
- Print the default application for PNG files:
|
||||
|
||||
`handlr get {{.png}}`
|
||||
Reference in New Issue
Block a user