|
|
Create a command to 'cd' to frontmost Finder window
There's already a way to do this: type 'cd ' at the command line, and then drag a folder onto it. (You can drag a folder from a Finder window or the desktop, or from a title bar.) It automatically adds escape characters as needed, and is also useful for commands other than 'cd'. (You can drag files as well as folders, and more than one at once.)
A dedicated script may be better choice if you're doing this specific thing a lot, but it's always good to know what built-in features are available, and for casual use it beats having to install extras, forget where they are, etc.. ---
reminders of aliases
I keep all my Bash aliases and functions in the file "~/.aliases.bash" which I source in my ~/.profile
And one of the things in that file is the following Bash function which I use to remind myself of what aliases (or other commented reminders) I have in that file:
reminders of aliases
Also, the bash shell command 'alias' will display a list of all aliases you have set
aliases vs functions
But the Bash command 'alias' only shows aliases (obviously!) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|