From 350fbf4d7d34ec46ffa747e8f0608daab4d4be2e Mon Sep 17 00:00:00 2001 From: Shiloh Fen Date: Sun, 17 Aug 2025 21:51:37 -0500 Subject: [PATCH] abs-nu-exec (new script) Signed-off-by: Shiloh Fen --- scripts/abs-nu-exec.nu | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/abs-nu-exec.nu diff --git a/scripts/abs-nu-exec.nu b/scripts/abs-nu-exec.nu new file mode 100755 index 0000000..88a1689 --- /dev/null +++ b/scripts/abs-nu-exec.nu @@ -0,0 +1,8 @@ +#!/home/linuxbrew/.linuxbrew/bin/nu +# SPDX-License-Identifier: AGPL-3.0-only +# Copyright (c) 2025 Shiloh Fen + +# Useful for executing nushell scripts in GNOME keyboard shortcuts without adding Homebrew PATH to your shell environment +def main [...command] { + exec /home/linuxbrew/.linuxbrew/bin/nu -l -c ($command | str join ' ') +} -- 2.51.2