|
1 year ago | |
---|---|---|
src | 1 year ago | |
test | 1 year ago | |
.build.yml | 1 year ago | |
.gitignore | 1 year ago | |
CHANGES.md | 1 year ago | |
LICENSE.md | 1 year ago | |
README.md | 1 year ago | |
dune-project | 1 year ago | |
so.opam | 1 year ago |
SO (Simple Open) is a small command line tool to quickly open file depending on their extension.
You should have a configuration file in ${XDG_CONFIG_HOME}/so/config
. It maps extensions to programs and should look like this:
mpv : mp4 avi
firefox : html
evince : pdf
eog : jpg png gif tif
There's a default fallback set to xdg-open
.
Then it's as simple as:
so ~/img/hello.jpg
opam update
opam install dune ocaml-xdg-basedir
dune build @all
dune install
See LICENSE.