bash - Implicitly launch detached program (&) from terminal -
i feel sure end duplicate, don't know how word can search it...
i programming in emacs, launch terminal. when use mac use aquamacs , command
aquamacs program.py
will launch aquamacs in separate window ready edit program.py. when work on linux machine same result must type
emacs program.py &
and i'm forgetting "&". 70% of time end closing emacs window, , relaunching again "&". understand why "&" there, there way set system command
emacs program.py
always launches detached process? time might not want behavior if sshing in on slow connection, in case use "-nw" anyway.
you can click on terminal , press ctrl-z move running foreground process background.
alternatively add function ~/.bashrc
:
emacs() { command emacs "$@" & }
Comments
Post a Comment