First of all, I have to say I love my Mac. But if there’s something that drives me crazy, is the Terminal.app’s keybindings.
After being a Linux user for some years, the way Terminal.app works makes me get crazy. Here’s how to put everything working like it sould:
First of all, open ~/.profile in a text editor. Add the following line to the beginning of the file:
TERM=linux
Then, get to the Terminal preferences menu->Settings->Keyboard. Change the following keys to those actions. Simply click on Edit->Action: Send String to shell.
Change the following: To:
home \033[1~
end \033[4~
page up \033[5~
page down \033[6~
control cursor right \033f
control cursor left \033b
Now it all should work fine.
To make \033 appear, simply press ESC on the text area.
If you get to screw Terminal.app, simply delete the file ~/Library/Preferences/com.apple.terminal.plist to reset the settings.
Tags: apple, bash, linux, mac, macintosh, osx, terminal
2 Comments