Page 1 sur 1
[zsh] Les raccourcis classique du shell ne marche plus (résolu)
Publié : mer. 17 oct. 2018, 15:44
par rwangum
Bonjour à tous,
Les raccourcis clavier du type ^p ^a ^e ^k ne marche plus tout à coup, au lieu faire l'action habituelle, mon terminal affiche "^P" par exemple. Les raccourcis avec Alt marche bien par contre.
Si je lance un prompt bash pas de problème, le problème vient donc de zsh.
Quelqu 'un aurait une idée ?
Merci,
Swan
Re: [zsh] Les raccourcis classique du shell ne marche plus
Publié : mer. 17 oct. 2018, 18:05
par waitnsea
rwangum a écrit : ↑mer. 17 oct. 2018, 15:44
Les raccourcis clavier du type ^p ^a ^e ^k ne marche plus tout à coup, au lieu faire l'action habituelle, mon terminal affiche "^P" par exemple. Les raccourcis avec Alt marche bien par contre.
Si je lance un prompt bash pas de problème, le problème vient donc de zsh.
Quelqu 'un aurait une idée ?
Bonjour,
ZSH peut être vi-like ou emacs-like (Wiki :
Zsh does not use readline, instead it uses its own and more powerful Zsh Line Editor, ZLE. It does not read /etc/inputrc or ~/.inputrc. , See
ZshWiki: zle:bindkeys etc...)
Mais aussi
http://zsh.sourceforge.net/Intro/intro_11.html, etc...
On croule sous la doc de zsh si on cherche un peu...
Pour mes besoins modérés, plutôt qu'installer oh-my-zsh et ses plugins je me suis contenté de ce qui est dans l'iso d'installation officielle à savoir
zsh et
grml-zsh-config
Et tu te configures un
.zshrc.loca
l qui sera lu après ton
.zshrc
lequel, lui, ne sera que la copie non modifiée de /etc/skel/.zshrc
Après il y a plein de choses amusantes à configurer, en particulier les fonctions...
Re: [zsh] Les raccourcis classique du shell ne marche plus
Publié : mer. 17 oct. 2018, 20:49
par Joffrey
Bonjour,
Je ne vois qu'une seule chose à faire, regarder les raccourcis actifs, c'est peut-être un plugin qui pose problème.
Re: [zsh] Les raccourcis classique du shell ne marche plus
Publié : jeu. 18 oct. 2018, 01:16
par waitnsea
Joffrey a écrit : ↑mer. 17 oct. 2018, 20:49
Je ne vois qu'une seule chose à faire, regarder les raccourcis actifs, c'est peut-être un plugin qui pose problème.
Avec grml-zsh-config et
aucune modification des bindkeys dans les .zshrc* on obtient :
Code : Tout sélectionner
bindkey
"^@" set-mark-command
"^A" beginning-of-line
"^B" backward-char
"^D" delete-char-or-list
"^E" end-of-line
"^F" forward-char
"^G" send-break
"^H" backward-delete-char
"^I" expand-or-complete
"^J" accept-line
"^K" kill-line
"^L" clear-screen
"^M" accept-line
"^N" down-line-or-history
"^O" accept-line-and-down-history
"^Os" sudo-command-line
"^P" up-line-or-history
"^Q" push-line
"^R" history-incremental-pattern-search-backward
"^S" history-incremental-pattern-search-forward
"^T" transpose-chars
"^U" kill-whole-line
"^V" quoted-insert
"^W" backward-kill-word
"^X^B" vi-match-bracket
"^X^F" vi-find-next-char
"^X^H" commit-to-history
"^X^J" vi-join
"^X^K" kill-buffer
"^X^N" infer-next-history
"^X^O" overwrite-mode
"^X^U" undo
"^X^V" vi-cmd-mode
"^X^X" hist-complete
"^X*" expand-word
"^X." zleiab
"^X1" jump_after_first_word
"^X=" what-cursor-position
"^XG" list-expand
"^XK" expand-kept-result
"^XM" inplaceMkDirs
"^XP" history-beginning-search-forward-end
"^XS" _complete_screen_display
"^Xb" help-show-abk
"^Xd" insert-datestamp
"^Xf" insert-files
"^Xg" list-expand
"^Xi" insert-unicode-char
"^Xk" insert-kept-result
"^Xp" history-beginning-search-backward-end
"^Xr" history-incremental-search-backward
"^Xs" history-incremental-search-forward
"^Xu" undo
"^Xz" help-zle
"^Y" yank
"^Z" grml-zsh-fg
"^[^D" list-choices
"^[^G" send-break
"^[^H" slash-backward-kill-word
"^[^I" self-insert-unmeta
"^[^J" self-insert-unmeta
"^[^L" clear-screen
"^[^M" self-insert-unmeta
"^[^[OC" forward-word
"^[^[OD" backward-word
"^[^[[C" forward-word
"^[^[[D" backward-word
"^[^_" copy-prev-word
"^[ " expand-history
"^[!" expand-history
"^[\"" quote-region
"^[\$" spell-word
"^['" quote-line
"^[-" neg-argument
"^[." insert-last-word
"^[0" digit-argument
"^[1" digit-argument
"^[2" digit-argument
"^[3" digit-argument
"^[4" digit-argument
"^[5" digit-argument
"^[6" digit-argument
"^[7" digit-argument
"^[8" digit-argument
"^[9" digit-argument
"^[<" beginning-of-buffer-or-history
"^[>" end-of-buffer-or-history
"^[?" which-command
"^[A" accept-and-hold
"^[B" backward-word
"^[C" capitalize-word
"^[D" kill-word
"^[F" forward-word
"^[G" get-line
"^[H" run-help
"^[L" down-case-word
"^[N" history-search-forward
"^[OA" up-line-or-search
"^[OB" down-line-or-search
"^[OC" forward-char
"^[OD" backward-char
"^[OF" end-of-somewhere
"^[OH" beginning-of-somewhere
"^[Oc" forward-word
"^[Od" backward-word
"^[P" history-search-backward
"^[Q" push-line
"^[S" spell-word
"^[T" transpose-words
"^[U" up-case-word
"^[W" copy-region-as-kill
"^[[1;3C" forward-word
"^[[1;3D" backward-word
"^[[1;5C" forward-word
"^[[1;5D" backward-word
"^[[200~" bracketed-paste
"^[[2~" overwrite-mode
"^[[3~" delete-char
"^[[5~" history-beginning-search-backward-end
"^[[6~" history-beginning-search-forward-end
"^[[A" up-line-or-history
"^[[B" down-line-or-history
"^[[C" forward-char
"^[[D" backward-char
"^[_" insert-last-word
"^[a" accept-and-hold
"^[b" backward-word
"^[c" capitalize-word
"^[d" kill-word
"^[e" edit-command-line
"^[f" forward-word
"^[g" get-line
"^[h" run-help
"^[i" menu-complete
"^[l" down-case-word
"^[m" insert-last-typed-word
"^[n" history-search-forward
"^[p" history-search-backward
"^[q" push-line
"^[s" spell-word
"^[t" transpose-words
"^[u" up-case-word
"^[v" slash-backward-kill-word
"^[w" copy-region-as-kill
"^[x" execute-named-cmd
"^[y" yank-pop
"^[z" execute-last-named-cmd
"^[|" vi-goto-column
"^[^?" slash-backward-kill-word
"^_" undo
" " magic-space
"!"-"~" self-insert
"^?" backward-delete-char
"\M-^@"-"\M-^?" self-insert
Re: [zsh] Les raccourcis classique du shell ne marche plus
Publié : jeu. 18 oct. 2018, 08:43
par rwangum
Super, c'est aussi simple qu'un bindkey -e
J'ai en mode vi en fait, par contre je me demande ce qui m'y a mis ??
Tu as surement raison waintnsea de te contenter d'un zsh sans framework, j'ai zim d'installer et c'est vrai que je suis un peu perdu dans tout ces dossiers et fichiers de configuration. Je ne sais pas qui fais quoi. Mais bon, ça fonctionne globalement bien (sauf aujourd'hui) et je n'ai pas trop envie de m'y plonger.
Merci à vous deux !