diff options
| author | 2019-04-18 19:41:39 +0530 | |
|---|---|---|
| committer | 2019-04-18 19:41:39 +0530 | |
| commit | 12ce9451ee1c24ad245d33e8944ba77a1108b5b2 (patch) | |
| tree | f7219625e7c50dc7dc14ac42d2d21ef72e3c6efa /scripts | |
| parent | a80ed0554dc677a26aca8a7a967cd60e1192edd4 (diff) | |
| download | nnn-12ce9451ee1c24ad245d33e8944ba77a1108b5b2.tar.gz | |
Move nlaunch from user-scripts
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/nlaunch/nlaunch | 20 |
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 |