aboutsummaryrefslogtreecommitdiff
path: root/bin/menu
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-25 19:53:54 -0300
committerEuAndreh <eu@euandre.org>2022-10-25 19:53:54 -0300
commitdc5bceaa66aa8d8a99f7263dad60e78d2eef643a (patch)
treeeab0db5cec0c98413960fadcd0b4b2af0bcb3fd6 /bin/menu
parentetc/guix/home.scm: Add "dig", "stunnel" and "nc" network utilities (diff)
downloaddotfiles-dc5bceaa66aa8d8a99f7263dad60e78d2eef643a.tar.gz
dotfiles-dc5bceaa66aa8d8a99f7263dad60e78d2eef643a.tar.xz
bin/menu: Use exec over spawning new processes for "bin" action
Diffstat (limited to 'bin/menu')
-rwxr-xr-xbin/menu5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/menu b/bin/menu
index 3b031b0..c389a2f 100755
--- a/bin/menu
+++ b/bin/menu
@@ -116,7 +116,10 @@ case "$ACTION" in
fi
;;
bin)
- bins | show 'bins' | sh
+ CHOICE="$(bins | show 'bins')"
+ if [ -n "$CHOICE" ]; then
+ exec "$CHOICE"
+ fi
;;
clipboard)
greenclip print | show 'clipboard' | copy