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


Click here to return to the '10.4: Use Spotlight to create a better locate' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Spotlight to create a better locate
Authored by: Dragon76 on May 17, '05 02:27:55PM

How do you create the function in tcsh?



[ Reply to This | # ]
10.4: Use Spotlight to create a better locate
Authored by: vramin on May 17, '05 06:01:46PM

You don't need to create a function.

Just put the following code into your .cshrc or your .tcshrc file:

alias myfind mdfind "kMDItemDisplayName == '!'wc"

Then at the command prompt type the following to reset your environment with the myfind command:

source $HOME/.cshrc;rehash


btw - You don't have to call it myfind. Just try not to name it "ls" or "rm" or the like.



[ Reply to This | # ]
10.4: Use Spotlight to create a better locate
Authored by: vramin on May 17, '05 07:14:34PM

You might want to add the alias:

alias redo "source $HOME/.cshrc;rehash"

Then when you change your .tcshrc or .cshrc file you can type "redo" instead of
"source $HOME/.cshrc;rehash".



[ Reply to This | # ]