Thursday, 29 July 2010
HomeMac OS X
 

January 3rd 2009

Fixing Home, End, and Page Up/Down keys in OS X terminal

The Home, End, Page Up and Page Down keys in Terminal don’t work as you would expect if you’ve come from the land of PCs. To get them them working “properly” again open up Terminal and go to the Preferences dialog. Click on the Settings button at the top and then the Keyboard tab. Change the action for each of the keys as show in the following table.

Key Old Action New Action
home scroll to start of buffer \033[1~
end scroll to end of buffer \033[4~
page up scroll to next page in buffer \033[5~
page down scroll to previous page in buffer \033[6~

 

Terminal Preferences

March 9th 2008

Enabling colours with “ls” in OS X terminal

On Linux you can type “ls –color” to get a directory listing in glorious colour, however the same command doesn’t work quite as well on OS X. The solution is to add the following lines to ~/.profile and then just use “ls” as normal:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad