This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/scripts/xdg-query-program.sh
Evie Litherland-Smith 10db59de2a Initial add of copied files
Probably not in a working state at the moment, but home-manager will
build. Needs proper configuring to be used
2024-05-11 13:55:23 +01:00

4 lines
112 B
Bash
Executable file

FILETYPE=$(xdg-mime query filetype $@)
DEFAULT=$(xdg-mime query default $FILETYPE)
echo "$FILETYPE -> $DEFAULT"