View previous topic :: View next topic |
Author |
Message |
ercete Guru
Joined: 11 Dec 2003 Posts: 426 Location: France, Avignon
|
Posted: Sun Sep 26, 2004 1:07 am Post subject: [ZSH] Touches HOME&co devraient marcher mais non ! (rés |
|
|
Hello !
Je voulais zsh : j'ai eu zsh que diable
Comme j'aime bien partir sur des bases sûres j'ai pris les fichiers de baptux :
[url]baptux.free.fr[/url]
seulement à ma grande surprise : HOME et END INSERT PGUP & PGDN me font des ~ alors que ces lignes sont bien présentes dans le .zshrc :
Code: |
#----------------{ Bindkey
bindkey "^[[H" beginning-of-line # la touche "home" renvoie au début de ligne
bindkey "^[[F" end-of-line # La touche "fin" renvoie à la fin de la ligne
#pour Les terminaux rxvt et dérivés : wterm,... et les consoles TERM=linux
bindkey "^[[1~" beginning-of-line # la touche "home" renvoie au début de ligne
bindkey "^[[4~" end-of-line # La touche "fin" renvoie à la fin de la ligne
# Pout tout le monde
bindkey "^[[3~" delete-char # la touche suppr
|
Mystère et paye ton google pour trouver !
Last edited by ercete on Thu Oct 21, 2004 6:31 am; edited 1 time in total |
|
Back to top |
|
|
ercete Guru
Joined: 11 Dec 2003 Posts: 426 Location: France, Avignon
|
Posted: Sun Sep 26, 2004 1:12 am Post subject: |
|
|
Bon trouvé réponses sur [url]dotfiles.com[/url] :
J'ai remplacé les binkeys de baptux par
Code: |
## get keys working
case $TERM in
linux)
bindkey "^[[2~" yank
bindkey "^[[3~" delete-char
bindkey "^[[5~" up-line-or-history ## PageUp
bindkey "^[[6~" down-line-or-history ## PageDown
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[e" expand-cmd-path ## C-e for expanding path of typed command
bindkey "^[[A" up-line-or-search ## up arrow for back-history-search
bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search
bindkey " " magic-space ## do history expansion on space
;;
*xterm*|rxvt|(dt|k|a|E)term)
bindkey "^[[2~" yank
bindkey "^[[3~" delete-char
bindkey "^[[5~" up-line-or-history ## PageUp
bindkey "^[[6~" down-line-or-history ## PageDown
bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
bindkey "^[e" expand-cmd-path ## C-e for expanding path of typed command
bindkey "^[[A" up-line-or-search ## up arrow for back-history-search
bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search
bindkey " " magic-space ## do history expansion on space
;;
esac
|
et ca marche... voilà pas de quoi, je me remercie moi-même de m'être posé la question !
|
|
Back to top |
|
|
CryoGen Veteran
Joined: 11 Feb 2004 Posts: 1426 Location: Bamako - Mali - Afrique
|
Posted: Sun Sep 26, 2004 9:54 am Post subject: |
|
|
J'avais le meme probleme (mais pas avec zsh , avec bash)
resolu avec un fichier ~/.inputrc
et dedans $include /etc/inputrc
C'est un solution un peu bizarre car normamlemnt quand l ~/.inputrc n'existe pas il devrait lire directement celui dans /etc .... bizarre _________________ - CryoGen` on #gentoofr@irc.freenode.net
- ~amd64 / KDE4
- I'm the bone of my sword... |
|
Back to top |
|
|
scout Veteran
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Sun Sep 26, 2004 10:28 am Post subject: |
|
|
Rah, c'est énorme, merci beaucoup !
moi je m'étais habitué à utiliser les divers CTRL+A CTRL+E pour me déplacer dans la ligne de commande car home et end marchaient pas. maintenant ça marche du feu de dieu ! _________________ http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse |
|
Back to top |
|
|
|