However, this is case-sensitive, which is a bit of an annoyance since many default folders in Mac OS X are named with upper-case starting letters, such as Desktop, Pictures, Movies etc. When you press the Tab key in Terminal, you auto-complete the current word you’re typing (according to available commands/files). So, happy customizing of commands! ? Bonus code: case-insensitive auto-completion ![]() One of the power features with the code above is that when the prev command is called for a folder, it will open all images in that folder and its sub-folders in the same Preview window. ![]() Open -a /Applications/Adobe\ Photoshop\ CS/Adobe\ Photoshop\ CS.app/ "$1" Here’s an example where I’ve added three commands to launch Preview, Photoshop and Firefox respectively with the current folder/a file as the input parameter: In that file, you just simply add your commands. profile (you use the dot before the name to create a hidden file in Mac OS X). The way to accomplish this is to create a hidden file in your user folder (i.e. launch an application with that folder/file as a parameter. When I use my Mac and type away in the Terminal, I’ve felt the need to add custom commands e.g. ![]() Add custom commands to the Mac OS X Terminal Published on Thursday, May 10, 2007
0 Comments
Leave a Reply. |