Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: code completition / cannot delete characters




Maybe he sets PS1 in his global zshenv.  Since nothing can prevent
that file from being sourced (not even by '-f'), that would be
possible.

I think I did that. Here is my .zshrc:

#----------------------------------------------------------------------- ---------------------------------------------
# The following lines were added by compinstall

zstyle ':completion:*' completer _complete
zstyle ':completion:*' completions 1
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' format '%d'
zstyle ':completion:*' glob 1
zstyle ':completion:*' ignore-parents parent
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s' zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' max-errors 6 numeric
zstyle ':completion:*' menu select=1
zstyle ':completion:*' original false
zstyle ':completion:*' prompt 'Anzahl DEINER Tippfehler: %e'
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion:*' substitute 1
zstyle ':completion:*' verbose false
zstyle :compinstall filename '/home/hanno/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt beep nomatch notify
bindkey -v
# End of lines configured by zsh-newuser-install
#----------------------------------------------------------------------- ---------------------------------------------
export LSCOLORS=cxCxFxFxbxGxGxababaeae
export CLICOLOR=$LSCOLORS

alias vi='/usr/local/bin/vim'
alias ls='ls -G'
alias ll='ls -Gl'
alias la='ls -Ga'
alias ausgehen='sudo shutdown -p now'

#export PS1="[$(print '%{\e[1;33m%}%n: \e[1;35m%}%d%{\e[0m%}')]>"
#export RPS1="%M"

As you can see, I commented the export command, and ULALA : I IS WOOOORKING !!!!!!!!!!!!!!!!!

NEVER NEVER "export PS1". Worst idea in the history of whoever created skeleton bashrc files. I have often wished zsh would ignore PROMPT, PS1,
RPROMPT, RPS1, PS2, etc. from the environment when starting up ...

OK. I promise :)

Sorry for this newb question. What else should one do if not export
PS1. I am exporting PROMPT and RPROMPT in my ~/.zshrc

Yes. I would be interested in that too.
What is the correct way, to individualize my prompt ?

THANK YOU ALL, FOR YOUR HELP.
I was close to not-using the zsh anymore, you guys are great :)

--
zsh-lover



Messages sorted by: Reverse Date, Date, Thread, Author