iGoogle Gadget: Launch Pad v2

Posted on October 8, 2009

Version 2 of Launch Pad is now available! This version can be customized. You can choose which icons you want to appear, you can customize the size of the icons and you can choose if you want the links to open in the same page or pop a new tab or window.

Launch Pad 2

Add to iGoogle

Permanent Alias in Mac Terminal

Posted on October 2, 2009

Mac OS X TerminalAnyone attempting to use the Terminal in MacOS X quickly realizes that doing so requires cryptic codes and long strings to accomplish simple tasks. One solution, for repetitive tasks, is to create aliases. An alias allows you to type a shortcut that the Terminal converts into the full set of tokens. For example, going up one directory in the tree requires the user to type, “cd ..”. You can make an alias that allows you to use “..” without the “cd ” and does the same thing. This can be done temporarily by typing alias ..=’cd ..’ at the command line. Doing so causes the alias to be created for the current session. But once you close the terminal, the alias is gone.

To make permanent aliases in the Mac OS X Terminal (shell) you will first need to VI (a Linux text editor) a file named .profile in your home directory. To do so, open Terminal (which goes to your home directory by default) and type:
vi .profile
Doing so opens .profile in the the VI editor. To start typing in the VI editor, press the “i” key (i as in eye). Then type the following:
alias la='ls -la'
Save the .profile file by pressing:
Esc and then Shift ZZ
Quit and re-run the Terminal. Once running type “la” at the command line and you should get a directory listing just as you would have had you typed “ls -la”.

Once you have proven that this is working for you, you can start adding other aliases to the .profile file. Here are some I like:
alias cls='clear' #old MS DOS
alias ..='cd ..' #up one level
alias ...='cd ../..' #up two levels
alias zap='rm -i' #remove file with warning

You can push new aliases into .profile without opening the file in VI. To do this, type the following at the command prompt:
echo alias e=\'exit\'>>.profile
# don't forget the \ characters before the single quotes.
# The \ escapes the quotes so that they are pushed into the file.

You don’t have to include the comments (i.e. #up one level).
Linux uses this same process but the aliases are stored in ~/.bashrc

Filed Under Tips | 1 Comment