Re: Listování posledn ích příkazů v shellu ?
To |
czdebian-l zavinac debian bod cz |
From |
Hans Ginzel <hans zavinac kolej bod mff bod cuni bod cz> |
Date |
Sat, 31 Aug 2002 09:40:28 +0200 |
Cc |
cech zavinac debian bod cz |
Mail-followup-to |
czdebian-l zavinac debian bod cz, cech zavinac debian bod cz |
User-agent |
Mutt/1.3.28i |
Ahoj.
Další nastavení je v /etc/inputrc. Defultne plati to zakomentovane,
ale doporucuji zmenit, pak se to chova jako historie ve vimu -- napisete
prvni par pismen a pak uz listujete jen radkami zacinajicim temito
znaky:
# man readline, man bash
# Execute command read in your shell/xterm and see
# what keycodes special keys sends.
"\e[20~": "make\n" # F9
"\e[2~": quoted-insert # Insert
# "\e[3~": delete-char # Remove Delete
# "\e[1~": beginning-of-line # Find Home
# "\e[4~": end-of-line # Select End
# "\e[5~": beginning-of-history # Prior PageUp
# "\e[6~": end-of-history # Next PageDown
"\e[5~": previous-history # Prior PageUp
"\e[6~": next-history # Next PageDown
"\e[A": history-search-backward # Up
"\e[B": history-search-forward # Down
# $if term=xterm
"\e[D": backward-char # Left
"\e[C": forward-char # Right
"\e[H": beginning-of-line # Find Home
"\e[F": end-of-line # Select End
# $endif
Zdravi
Hans Ginzel
Partial thread listing: