commit ba0764084a5dad863b7f3bb880c442ccf1c0bff5 parent 5b599f098b6844e7e9d70ec8ae173d9c5e079359 Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Fri, 23 Oct 2020 01:35:27 -0500 Update with costom program match(1) command available on my server; very simple program. Diffstat:
| M | scripts/.local/bin/edc | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/.local/bin/edc b/scripts/.local/bin/edc @@ -1,5 +1,4 @@ #!/usr/bin/env dash # Edit files from a list of files -files=`egrep $@ "${XDG_CONFIG_HOME:?unset}/edc"` || exit 1 -${EDITOR:-vi} ${files} +f="$(match -d $@ <"${XDG_CONFIG_HOME:?unset}/edc")" && ${EDITOR:-vi} ${f}