Is it possible in a standalone REPL
(outside of VScode
) to start a bash-script and get back focus on the current external REPL
right after?
Here my snippet that works fine in VScode
, but fails outside the integrated VScode-REPL
:
s_bat = "test.sh"
cd("/media/stefan/DATA/data/temp")
pwd()
fid = open(s_bat, "w")
println(fid, "#! /bin/bash")
println(fid, "echo Hallo Julia!")
close(fid)
Base.Filesystem.chmod(s_bat, 0o500)
cmd_ = Cmd(`konsole --separate --noclose --show-menubar -e ./$s_bat \&`; windows_verbatim=true, detach=true)
run(cmd_)