Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ZSH] Touches HOME&co devraient marcher mais non ! (réso
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
ercete
Guru
Guru


Joined: 11 Dec 2003
Posts: 426
Location: France, Avignon

PostPosted: Sun Sep 26, 2004 1:07 am    Post subject: [ZSH] Touches HOME&co devraient marcher mais non ! (rés Reply with quote

Hello !

Je voulais zsh : j'ai eu zsh que diable :twisted:
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
View user's profile Send private message
ercete
Guru
Guru


Joined: 11 Dec 2003
Posts: 426
Location: France, Avignon

PostPosted: Sun Sep 26, 2004 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
CryoGen
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1426
Location: Bamako - Mali - Afrique

PostPosted: Sun Sep 26, 2004 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Sun Sep 26, 2004 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum