summaryrefslogtreecommitdiff
path: root/artix/home/.local/bin/edit
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
committerNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
commit0c913f1e421b9d47c052350c4c1d619e4ac6a297 (patch)
treec9124ff04b9252836221c41d2ca2fa133d166251 /artix/home/.local/bin/edit
Initial commit
Diffstat (limited to 'artix/home/.local/bin/edit')
-rwxr-xr-xartix/home/.local/bin/edit10
1 files changed, 10 insertions, 0 deletions
diff --git a/artix/home/.local/bin/edit b/artix/home/.local/bin/edit
new file mode 100755
index 0000000..c6f8288
--- /dev/null
+++ b/artix/home/.local/bin/edit
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+eval TARGET_FILE=$(cat ~/.local/share/dox/quickconfig | grep "#$1\$$" | awk -F "#" '{print $1}')
+
+if [ "$TARGET_FILE" != "" ]; then
+ nvim $TARGET_FILE
+else
+ echo "Unknown config file. Use one below :"
+ grep -o "#.*\$$" ~/.local/share/dox/quickconfig | tr -d '#' | tr -d '$'
+fi