mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Add option to specify arguments to exec
This commit is contained in:
parent
3f07a8ca76
commit
14663b964b
|
@ -520,10 +520,14 @@ handle_bin() {
|
||||||
application/x-executable|application/x-shellscript)
|
application/x-executable|application/x-shellscript)
|
||||||
clear
|
clear
|
||||||
echo '-------- Executable File --------' && file --dereference --brief -- "${FPATH}"
|
echo '-------- Executable File --------' && file --dereference --brief -- "${FPATH}"
|
||||||
printf "Run executable (y/N)? "
|
printf "Run executable (y/N/'a'rgs)? "
|
||||||
read -r answer
|
read -r answer
|
||||||
case "$answer" in
|
case "$answer" in
|
||||||
[Yy]* ) exec "${FPATH}";;
|
[Yy]* ) exec "${FPATH}";;
|
||||||
|
[Aa]* )
|
||||||
|
printf "args: "
|
||||||
|
read -r args
|
||||||
|
exec "${FPATH}" "$args";;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) exit;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue