Monday, July 31, 2006

Readline (bash) shortcuts

Only the ones I forget frequently:
* Tab Tab  Only Sub Dirs inside without Hidden one
$ Tab Tab  All Sys variables
@ Tab Tab  Entries from "/etc/hosts"
= Tab Tab  Output like ls or dir
Ctrl + a  Jump to the start of the line
Ctrl + b  Move back a char
Ctrl + e  Jump to the end of the line
Ctrl + f  Move forward a char
Ctrl + k  Cut to EOL
Ctrl + r  Search the history backwards
Ctrl + R  Search the history backwards with multi occurrence
Ctrl + u  Delete backward from cursor
Ctrl + w  Delete token left of cursor
Ctrl + xx  Move between EOL and current cursor position
Ctrl + y  Paste to EOL
Alt + >  Move to the last line in the history
Alt + *  Insert all possible completions
Alt + n  Search the history forwards non-incremental
Alt + p  Search the history backwards non-incremental
Alt + r  Recall command
Alt + back-space  Delete word left of cursor

Saturday, July 29, 2006

xmodmap revisited (Winkey, Intellimouse)

Wheel scrolling
xmodmap -e "pointer = 1 2 3 6 7 4 5"

xmodmaprc:

keycode 115 = Super_L
add mod4 = Super_L
keycode 116 = Super_R
add mod4 = Super_R