A flag (-e and --edit) that takes the name of a config file (defaults to ~/.config/dxhd/ directory) with/without the file extension and opens with the text editor.
Why
To get your config files open in your $EDITOR faster.
Implementation hints
-e file(.ext) which will expand to ~/.config/dxhd/file(.ext)`:
if the passed path does not contain the directory separator /, then assume file is in ~/.config/dxhd/ directory
the file extension is not mandatory as long as there is only one file with that name in a directory
What do you want
A flag (
-e
and--edit
) that takes the name of a config file (defaults to~/.config/dxhd/
directory) with/without the file extension and opens with the text editor.Why
To get your config files open in your
$EDITOR
faster.Implementation hints
-e file(.ext)
which will expand to ~/.config/dxhd/file(.ext)`:/
, then assume file is in~/.config/dxhd/
directory