diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-04-18 15:19:54 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-04-18 16:09:20 +0000 |
| commit | dd02ee93133766a4ea68b62318db1f643d53a563 (patch) | |
| tree | f08a3cf941de791efce2808fd822513858c5206b /bin | |
| parent | release v0.1-rc3 (diff) | |
| download | alive-dd02ee93133766a4ea68b62318db1f643d53a563.tar.gz alive-dd02ee93133766a4ea68b62318db1f643d53a563.zip | |
merge dist/pack and dist/release
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/alv-copilot | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/alv-copilot b/bin/alv-copilot index 9341655..9a0cf40 100755 --- a/bin/alv-copilot +++ b/bin/alv-copilot @@ -7,17 +7,15 @@ trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP ARGS=$* FIFO=$tmpdir/fifo CONF=$tmpdir/conf -LIBDIR=$(dirname "$0") -LUA_PATH="$LIBDIR/?.lua;$LIBDIR/?/init.lua;$LUA_PATH" cat > "$CONF" << 'EOF' split focus screen -t evaltime sh -c 'tty > "$FIFO"; read done < "$FIFO"' focus -screen -t runtime sh -c 'read tty < "$FIFO"; moon "$LIBDIR/alv/copilot.moon" $ARGS 2> "$tty"; echo "[press enter to exit]"; read prompt; echo done > "$FIFO"' +screen -t runtime sh -c 'read tty < "$FIFO"; "alv" $ARGS 2> "$tty"; echo "[press enter to exit]"; read prompt; echo done > "$FIFO"' EOF mkfifo "$FIFO" -export FIFO ARGS LIBDIR LUA_PATH +export FIFO ARGS exec screen -mc "$CONF" |
