Discussion:
how to find where alias's are defined
ScKaSx
2008-12-15 00:04:23 UTC
Permalink
Hi All,

I want to know the location of alias's in cygwin. I made afew awhile ago
and now can not determine where they are located. When I type 'alias' I can
see the ones I made but it doesn't tell me a location. Is there an option I
can use to do this? Thanks.

Cheers,
ScKaSx
--
View this message in context: http://www.nabble.com/how-to-find-where-alias%27s-are-defined-tp21006365p21006365.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Buchbinder, Barry (NIH/NIAID) [E]
2008-12-15 00:27:29 UTC
Permalink
Post by ScKaSx
I want to know the location of alias's in cygwin. I made afew awhile
ago and now can not determine where they are located. When I type
'alias' I can see the ones I made but it doesn't tell me a location.
Is there an option I can use to do this? Thanks.
Aliases don't have locations in the file system. They can be *set* in
startup files of your shell or at the command line and the shell
remembers them. If set at the command line, they are not remembered
after the shall is closed. If set in a startup file, the shell gets
"reminded" each time it is started.

See the documentation for your shell, e.g.,
man bash
or
info bash

- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.
Thorsten Kampe
2008-12-15 01:53:18 UTC
Permalink
* ScKaSx (Sun, 14 Dec 2008 16:04:23 -0800 (PST))>
Post by ScKaSx
I want to know the location of alias's in cygwin. I made afew awhile ago
and now can not determine where they are located. When I type 'alias' I can
see the ones I made but it doesn't tell me a location.
The easiest thing would be to simply search the whole Cygwin folder for
a file with a content of your alias. The smartest thing would be to
identify which shell you are using, read the FILES section of the man
page and then to look into these files. If you use bash that would be
/etc/profile, ~./bashrc and ~/.bash_profile.

Where ever you did put your aliases - if you didn't put them in
~/.bashrc then you put them into the wrong place.

Thorsten

Loading...