URL: https://linuxfr.org/forums/linux-debian-ubuntu/posts/debian-et-zsh Title: Debian et ZSH Authors: Moonz Date: 2004年10月13日T20:56:12+02:00 Tags: Score: 0 Bonjour tout le monde, Mon problème est simple: sous ma SID avec ZSH (4.2.1-5), aucun émulateur de terminal fonctionne: - xterm, aterm, eterm, rxvt: affiche ~ quand j'appuie sur , ou . Plutôt génant, surtout le suppr :( Konsole/Gnome-terminal (libvte4): encore pire: ces touches ne fonctionnent pas, mais en plus quand j'efface la caractère précédent (backspace), il n'efface rien du tout et un espace s'affiche. De plus, il n'affiche que le début de l'invite de commande (il affiche 20:53]% alors que mon prompt est [/home/moonz 20:53]%) Avec bash, tout fonctionne correctement Mon .zsh/rc/prompt.rc: # for have colors autoload -U colors colors # define your colors here (i hate white background) host_color="green" path_color="red" date_color="blue" # Format date_format="%H:%M" date="%{$fg[$date_color]%}%D{$date_format}" host="%{$fg[$host_color]%}%n" cpath="%{$fg[$path_color]%}%/" end="%B%#%b " # enjoy 256 colors in xterm !!! (thanks to Denis Bodor) # Note : your xterm _must_ have compiled with 256 colors support !! # This is *not* the default ! #if [[ $TERM == "xterm" ]]; then # PS1="$host $cpath $end" #else # PS1="$date $host $cpath $end" #fi PROMPT_NEWLINE=$(echo -ne "\n%{\r%}") PS1="%B[%b$cpath $date%{$reset_color%}%B]%b$end" Merci d'avance pour m'aider à résoudre ce problème ;)

AltStyle によって変換されたページ (->オリジナル) /