voyeg3r /voyeg3r inputrc

Este arquivo configura atalhos para o terminal
# Arquivo: inputrc - atalhos para o bash
# Criado: Qui 23/Out/2008 hs 16:27
# Last Change: 24-10-2008 07:18:09
# autor: Sérgio Luiz Araújo Silva
# este arquivo configura atalhos de tecla
# para o bash

set editing-mode vi
set completion-ignore-case on
 
$if Bash
# Quote the current or previous word
"\C-xq": "\eb\"\ef\""
$endif
 
# yank-nth-arg -Insert the first argument to the previous command 
#(usually the second word on the previous line) at 
#point. With an argument n, insert the nth word from 
#the previous command (the words in the previous command 
#begin with word 0). A negative argument inserts the nth 
#word from the end of the previous command. 

"\M-.": yank-nth-arg
"\M-,": yank-last-arg
 
# transpose-words --> troca palavras de lugar

"\M-k": dynamic-complete-history
"\C-l": clear-screen
"\C-c": abort 
"\C-k": kill-line
"\C-w": backward-kill-word
"\C-e": end-of-line
"\C-a": beginning-of-line
"\C-n": history-search-forward
"\C-p": history-search-backward
"\c-n": next-history
"\c-p": previous-history
"\c-v": quoted-insert
"\c-t": transpose-chars
"\c-u": unix-line-discard
"\c-y": yank
 
# se bloquear o bash com control-s 
# desbloqueia com control-q

# Special keys
########################################################################

"\e[2~": overwrite-mode
  # 

"\e[3~": delete-char
  # 

"\e[5~": beginning-of-history
  # 

"\e[6~": end-of-history
  # 

# Arrows
"\e[1;5C": forward-word
  # 

"\e[1;5D": backward-word
  # 

$include /etc/inputrc
# __END__
# vim: filetype=readline