about summary refs log tree commit diff stats
path: root/hm/soispha/conf/lf/commands/scripts
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-23 21:17:39 +0100
committerSoispha <soispha@vhack.eu>2024-02-23 21:18:48 +0100
commitf14e1735506da281d323e6c36cf62c35f8abf0bd (patch)
treedc9f7a537cce53cb014cfd613cd8859de36f71da /hm/soispha/conf/lf/commands/scripts
parentfeat(hm/pkgs/git-edit-index): Init (diff)
downloadnixos-config-f14e1735506da281d323e6c36cf62c35f8abf0bd.zip
feat(hm/conf/lf): Add a `execute` subcommand
Diffstat (limited to 'hm/soispha/conf/lf/commands/scripts')
-rwxr-xr-xhm/soispha/conf/lf/commands/scripts/execute.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/hm/soispha/conf/lf/commands/scripts/execute.sh b/hm/soispha/conf/lf/commands/scripts/execute.sh
new file mode 100755
index 00000000..601acbb8
--- /dev/null
+++ b/hm/soispha/conf/lf/commands/scripts/execute.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.0.13" . %SHELL_LIBRARY_PATH
+
+# shellcheck disable=SC2269
+f="$f"
+# shellcheck disable=SC2269
+fx="$fx"
+# shellcheck disable=SC2269
+fs="$fs"
+# shellcheck disable=SC2269
+id="$id"
+
+dir="$(realpath "$f")";
+
+"$dir"
+
+# vim: ft=sh