[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use bash alias in emacs compile
From: |
Daniel (Youngwhan) |
Subject: |
Re: how to use bash alias in emacs compile |
Date: |
Mon, 7 May 2012 12:48:06 -0700 (PDT) |
User-agent: |
G2/1.0 |
On May 3, 1:35 am, "Pascal J. Bourguignon" <p...@informatimago.com>
wrote:
> "Daniel (Youngwhan)" <breadn...@gmail.com> writes:
> > Hi,
>
> > I have alias like this:
>
> > alias dm='cd ~/XYZ && ./mycompile.sh'
>
> Where do you have it?
>
The lots of aliases are defined in a file, where is in $HOME/bin, and
the $PATH has it, too.
> > I typed M-x compile, and tried to run by just typing "dm", but it
> > doesn't recognize.
>
> Try: M-x compile RET C-a C-k bash -i -c dm RET
>
Yeah, it works!, but if I typed only dm, it doesn't.
> > I searched and some suggest BASH_ENV, so I tried, but not working.
>
> man bash explains in details what file it will load and when, but it's
> complicated. I put everything in ~/.bashrc
>
Let me study you've mentioned here, but if you can share your
experience in detail, it would be appreciated.
> --
> __Pascal Bourguignon__ http://www.informatimago.com/
> A bad day in () is better than a good day in {}.
Thank you!
Daniel