[NCLUG] bash alias
Aaron D. Johnson
adj at ccltd.com
Wed Oct 17 16:34:00 MDT 2001
In message <15310.1310.289581.54060 at harrier.ftc.agilent.com>, Daniel Herrington writes
> I use tcsh most of the time. I have an alias for xemacs so that I can
> just type "xe <file>" and it starts xemacs and puts it in the
> background. The alias I use for this is the following:
>
> alias xe 'xemacs \!* &'
>
> How would I do the same thing in bash?
I'd do:
xe () { xemacs $* & }
Which makes xe a shell function rather than an alias, but it works
just the same.
More information about the NCLUG
mailing list