diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-03-19 05:32:16 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-03-19 06:17:58 +0530 |
commit | 8d7a56cbaaefd6afb688a2c186fed0df62af4918 (patch) | |
tree | ee6d4c22c446639b1300297f3dbfc04f36d2dfec /nlay | |
parent | 5624905803c0e64a0e2fa9caf433649eb6323e52 (diff) | |
download | nnn-8d7a56cbaaefd6afb688a2c186fed0df62af4918.tar.gz |
Run a custom script support
Diffstat (limited to 'nlay')
-rwxr-xr-x | nlay | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -83,6 +83,16 @@ elif [ "$2" == "screensaver" ]; then type -P $app &>/dev/null && eval $app $opts $bg exit 0 + +#------------------ SCRIPT ------------------ +elif [ "$2" == "script" ]; then + # add commands or a custom script below + + # echo "my commands or custom script" + # sh "path_to_script.sh" + $SHELL "$1" + + exit 0 fi #----------------- RUN APP ------------------ |