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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -