aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nlaunch/nlaunch20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/nlaunch/nlaunch b/scripts/nlaunch/nlaunch
new file mode 100755
index 0000000..18d0f8b
--- /dev/null
+++ b/scripts/nlaunch/nlaunch
@@ -0,0 +1,20 @@
+#!/usr/bin/env sh
+
+# Description: Fuzzy find executables in $PATH and launch an application.
+# stdin, stdout, stderr are suppressed so CLI utilities exit silently.
+# Works as an independent app launcher.
+#
+# Requires fzy.
+#
+# Shell: POSIX compliant
+# Author: Arun Prakash Jana
+
+IFS=':'
+
+get_selection() {
+ ls -H $PATH | sort | fzy
+}
+
+if selection=$( get_selection ); then
+ "$selection" 2>/dev/null 1>/dev/null &
+fi