Create Permanent Alias on Mac
Here’s a quick how-to on creating permanent aliases, in OS X. I wanted/needed it for the Zend Framework to create the shortcut zf.
Open terminal.app
open ~/.bash_profile. I usually use pico editor, so the command would be
pico ~/.bash_profile
Type in the name of the alias and path to the thing you want to create an alias for. In my case:
alias zf=/usr/local/zend/share/ZendFramework/bin/zf.sh
^X to quit, save the buffer and restart the terminal.
To see if the zf alias worked you can type in
zf show version
It should display the Zend Framework version number.
Get your own Gravatar. RSS feed for comments on this post. TrackBack URL.
Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.
You can use these HTML tags in your comments: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>