|
|
|
Free scripts to improve UNIX/Finder interaction
I've been using the bash shell for so long that I'm not sure about my csh syntax, but I think this should work:
First, put the new commands someplace conventional in your path, like /usr/local/bin. I think in csh type shells (such as tcsh) you need to type rehash now. Now you can just type the commands with no path. The alias you can define this way:
alias cdf "cd `posd`"
where those are backticks around the posd. That should be one way to do it.
Free scripts to improve UNIX/Finder interaction
Backticks alone will not work because they will be evaluated when the alias is defined, not in the current context of the shell. You can see this by looking at the output from You need to use the eval command, like this:
Free scripts to improve UNIX/Finder interaction
Right- I should have used single quotes, which does work (I just tested it in csh): |
SearchFrom our Sponsor...Latest Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.09 seconds |
|