Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'successful bash alias of this command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
successful bash alias of this command
Authored by: GlowingApple on Mar 23, '05 11:22:59PM
Old hint I know, but I finally figured out that if I set a bash alias:
alias cdapath='cd < /bin/apath'
then I can type cdapath alias in the terminal and it displays the dir of the alias and cd's to it. Simple idea, but it took me a while to try to figure out how to do it since there's no way to alias
cd `apath dir`
as far as I know. Then, I was attempting to cd within the script (and obviously failing) and finally came upon this alias. So I thought I'd share it in case anyone else is in the same predicament.


When Microsoft asks you, "Where do you want to go today?" tell them "Apple."

[ Reply to This | # ]