bash equivalence of tcsh "alias em "emacs \!:1 &""?
hi,
i want to be able to type "em foo" and have bash execute "emacs foo &" How can I do that? I know how to achieve the effect in tcsh: alias em "emacs \!:1 &" However, bash doesn't seem to interpret the "\!:1" the same way tcsh does. thanks. |
Try (you can put this line on ~/.bashrc) :
Code:
em() { emacs $1 &; } |
it works if i remove the ";" bash says it's syntax error. but thanks.
Code:
em() { emacs $1 & } |
;) Great
|
All times are GMT -5. The time now is 05:35 AM. |