How to find out where alias (in the bash sense) is defined when running Terminal in Mac OS X

Posted by Richard Fuhr on Stack Overflow See other posts from Stack Overflow or by Richard Fuhr
Published on 2010-04-10T18:18:50Z Indexed on 2010/04/10 18:23 UTC
Read the original article Hit count: 519

Filed under:
|
|
|

How can I find out where an alias is defined on my system? I am referring to the kind of alias that is used within a Terminal session launched from Mac OS X (10.6.3).

For example, if I enter the alias command with no parameters at a Terminal command prompt, I get a list of aliases that I have set, for example, this is one of them

alias mysql='/usr/local/mysql/bin/mysql'

However, I have searched all over my system using Spotlight and mdfind in various startup files and so far can not find where this alias has been defined ( I did it a long time ago and didn't write down where I assigned the alias).

© Stack Overflow or respective owner

Related posts about bash

Related posts about alias