You are not logged in.
Pages: 1
I don't understand how the zsh completion works, i just got some config from web, the thing is that every time i use completion like this:
vi .zsh<tab>
this happens:
vi .zshprvi .zshrc
what is quite annoying, I have a similar problem with the history feature, specially when it is more than one line, for example, if I use this command:
echo "some stuff
more stuff"
and try to use the history, I get a really strange behavior
| the cursor goes only to here
V V and the cursor begin here
echo "some stuff
more stuff"
and if i insert a new character in the beginning of the line and then delete it I get this:
echo "somecho "some stuff
more stuff"
It seems like the zsh inserts a tab caracter in the beginning of the line, but forget to show the caracter after the tab.
I don't know what in my configuration could be resulting in this behavior, but here is what I think could be relevant of my .zshrc file:
#---[ System settings ]---
limit -s coredumpsize 0
umask 0027
#---[ ZSH Options ]---
#
#---Completion---
setopt ALWAYS_TO_END AUTO_LIST NO_LIST_BEEP
#+++Completion+++
#---Expasion---
setopt EXTENDED_GLOB GLOB_DOTS
#+++Expasion+++
#---History---
setopt EXTENDED_HISTORY NO_HIST_BEEP HIST_IGNORE_ALL_DUPS HIST_IGNORE_SPACE HIST_REDUCE_BLANKS
HISTSIZE=5000
SAVEHIST=5000
HISTFILE=~/.history
DIRSTACKSIZE=7
#+++HISTORY+++
#+++[ Environment ]+++
#---[ Key bindings ]---
bindkey -e
bindkey "^[[3~" delete-char
bindkey '\eq' push-line-or-edit
bindkey '^p' history-search-backward
bindkey "^[[3A" history-beginning-search-backward
bindkey "^[[3B" history-beginning-search-forward
bindkey '\e[1~' beginning-of-line # Home
bindkey '\e[2~' overwrite-mode # Insert
bindkey '\e[3~' delete-char # Del
bindkey '\e[4~' end-of-line # End
bindkey '\e[7~' beginning-of-line # home
bindkey '\e[8~' end-of-line # end
bindkey '\eOc' forward-word # ctrl cursor right
bindkey '\eOd' backward-word # ctrl cursor left
#+++[ Key bidings ]+++
#---[ Completition system ]---
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format '%d:'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*'
zstyle ':completion:*' max-errors 3
zstyle ':completion:*' menu select=3 yes
zstyle ':completion:*' prompt 'Alternatives %e:'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/home/augusto/.zshrc'
#+++[ Completition system ]+++
#---[ Modules ]---
zmodload zsh/complist
autoload -Uz compinit
compinit
zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -ap zsh/mapfile mapfile
#+++[ Modules ]++
Last edited by hack.augusto (2008-11-21 18:39:26)
Offline
Solved, it was my PS1
export PS1="%T $(tput setaf 6)%n$(tput sgr0) %1.%# "
just chagend it to:
export PS1="%T %F{cyan}%n%f %1.%# "
Offline
Pages: 1