tcsh a ne-fungujici bindkey
Miroslav Lachman
000.fbsd at quip.cz
Wed Nov 14 00:15:12 CET 2007
Mam tu ted takovy zajimavy problem s bindkey pro shell tcsh.
Nadefinoval jsem si nejake klavesy v ~/.cshrc, ale po prihlaseni se
nabinduji jen nektere (odzkouseno i prohledano vypisem prikazu bindkey).
Pokud ale rucne provedu `source ~/.cshrc`, tak se dodatecne nabinduji i
ty zbyvajici dve.
To je zkratka neco, cemu moc nerozumim a netusim, jak to "debugovat".
Konkretne mam na konci .cshrc souboru toto:
## use Ctrl-V. Press that in the Terminal and then hit any key,
## and it will give you the magic code to use
##
## Ctrl+W
bindkey "^W" backward-delete-word
## Shift-BACKSPACE
bindkey "^H" backward-delete-word
## UP
bindkey -k up history-search-backward
## DOWN
bindkey -k down history-search-forward
## Ctrl-LEFT
bindkey "^[OD" backward-word
## Ctrl-RIGHT
bindkey "^[OC" forward-word
## DEL key
bindkey "^[[3~" delete-char
Po loginu nefunguje Ctrl-LEFT a Ctrl-RIGHT pro preskakovani po slovech,
DEL i Shift-BACKSPACE funguje.
Po zadani `source ~/.cshrc` uz funguje vse.
Dokazal by nekdo poradit?
Mirek
More information about the Users-l
mailing list