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


Click here to return to the 'No need to reinvent the wheel' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No need to reinvent the wheel
Authored by: jdera on Jan 05, '04 10:16:40AM

Users of Fink can install the fortune-mod package (fink install fortune-mod) for the "real" fortune command. Users of DarwinPorts can install the fortune package (sudo port install fortune) for the same.



[ Reply to This | # ]
No need to reinvent the wheel
Authored by: ahbe on Jan 05, '04 11:34:45AM
Hehehe, fink worked like a charm. I just had to add
 /sw/bin/fortune 
to my .profile file and it works like a charm. Thanx for the tip. Ok, I just have one more question off the topic. Is there anyway to get terminal to close the window when you logout? It really irritates me that I have to close a terminal window twice.

[ Reply to This | # ]
No need to reinvent the wheel
Authored by: jdera on Jan 05, '04 11:46:16AM

With a Terminal window open, select "Window Settings" from the "Terminal" menu. This will give you the Terminal Inspector. There is a drop-down box that has "Shell" as one of its options (it's the default). You can specify that "When the shell exits", "Close only if the shell exited cleanly" (my recommendation) or "Close the window".

I recommend close only if it exited cleanly, this way if there are any errors, the window will remain on-screen. Otherwise, it gets closed automatically. Click the "Use Settings as Defaults" and it will be applied to all future Terminal windows.



[ Reply to This | # ]