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


Click here to return to the 'CLI features and more' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CLI features and more
Authored by: mingking on Dec 22, '02 08:35:58PM

If you are a Unix guy then you will appreciate some of the nice things that help the command line integrate with the GUI. These may be posted as hints already, but these are some of the ones that I use the most being a Unix old-timer.

Doing 'open .' (or any path) in a shell will open a Finder window in the current working directory (or whatever path).

Just doing 'open <filename>' will open a file in the GUI with the default application. Sometimes it is easier to edit a .txt file or whatever using e.g. TextEdit instead of vi or emacs. See the man page for other 'open' options.

I don't exactly know where it can be found but there is an application that you can drag onto the Finder toolbar that when clicked will open a terminal shell at the cwd of the current Finder window. The one that is an app works best - there are also some that are AppleScripts but they are a bit clunkier.

You can save a terminal session that has e.g. emacs running. Not only can you launch that setup later from within the terminal, but a file called emacs.term will be created in your ~/Library/Application Support/Terminal folder. Drop that on your Finder toolbar and then click it and instantly get an emacs shell opened from the Finder.

In fact you can create any shell script and put it in your Finder toolbar and clicking it will launch it. You have to make the script exectutable.

You can drag and drop a file or folder from the Finder onto a terminal window and it will paste the path to the item into the shell. Great for inserting those super long paths with lots of spaces in them.

In vi you can paste text from the clipboard directly into vi. Great for copying text from a GUI app. You have to be in insert mode first. And you can also copy stuff from the terminal and then paste it into GUI apps.

There is a cool application called DesktopConsole that allows you to have logs displayed as part of your desktop. Very nice for monitoring syslog messages, httpd or ftpd access logs etc.

There's a cool app called ProcessWizard that gives you a fast GUI way to see all of your processes and renice them.

There's a cool app called OnMyCommand that adds a contextual menu that you can setup to run shell scripts.

What else... oh there's tons of Unix stuff available. Some needs to be compiled, some comes prebuilt. Check out fink.

And there's XDarwin - an X server that is just a double-click install away. Xeyes launches by default :-)

Have fun with ... uh ... MacNix... The best of both worlds for sure!



[ Reply to This | # ]
CLI features and more
Authored by: palott on Dec 23, '02 01:14:44AM


I was able to get fink to install ALOT of open source packages, f77, gnome, I also installed OroborOSX and XDarwin. Things seem to be working smoothly now. I think I'll like this OS, and its GUI it will just take a little time to get used to some of the mac way of doing things.

Thanks,

Aaron



[ Reply to This | # ]