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


Click here to return to the 'Wrong way...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Wrong way...
Authored by: Bart VdBroeck on May 16, '01 05:11:21AM

Regardless of where you put this stuff
(I happen to like ".whatever" files in the root of my home directory. They don't bother me when I get a listing of it (don't use the -a option normally), and when I feel like editing one of them, I just have to type something like "cd;pico .cshrc", not "pico ~/Library/init/tcsh/aliases.mine". How does one type a "~" on an azerty-keyboard in tcsh anyway?)
you should put the right stuff in it... First of all, I guess you could change the alias to

"/Applications/TextEdit.app/Contents/MacOS/TextEdit !* &"

to save you from having to type the ampersand (&) everytime. But that still isn't the right way. This is not your daddy's *nix people! These bundles have a reason of existence. You're not supposed to navigate into them frequently. Almost never actually, except if you want to hack them in some way. So the Mac OS X way to do it would be:

alias te "open -a TextEdit.app"

Isn't that a lot more elegant? This won't start a new TextEdit everytime you use it and the shell isn't locked up after issuing it. Two behaviors which show you this is the Mac way to do it. And whenever Apple decides bundles should have separate optimized binaries for G4 and G5 processors (just freewheeling here), this will still work.



[ Reply to This | # ]
Wrong way...
Authored by: Bart VdBroeck on May 16, '01 06:20:23AM

OK, here's the problem with this comment feature again. You have to put a backslash (the flipped version of "/") right before "!*"



[ Reply to This | # ]