Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8
- X-seq: zsh-workers 35572
- From: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8
- Date: Tue, 23 Jun 2015 12:41:41 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple; d=mail.ud10.udmedia.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=beta; bh=64Vgi7sdtHnOWEEu+MJFotRoOO ZsWyazF+FMQ+Sx/yw=; b=SoLNOjY/V+QO8AyMBlPFHh0q4C29NwuuG6pzhYJ7hT OISY3YIbHzGTYvSN9KxfF1WDQSGnvPh4aaRUbG0rAcvXMhIC6IJMrRbyyPLF0sZO blcvtTO/KUTApjeIpFEKAKdvIcNJ8rEpNG6RKhD9DIGR5+1E7TeJ3NMjKxDATCQv k=
- In-reply-to: <CAHYJk3R0cU+DAwqb-5TvguRi7mGcwrQETwx+tJYBJwGsASf99w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150623071613.GA398@x4> <CAHYJk3R0cU+DAwqb-5TvguRi7mGcwrQETwx+tJYBJwGsASf99w@mail.gmail.com>
On 2015.06.23 at 12:25 +0200, Mikael Magnusson wrote:
> On Tue, Jun 23, 2015 at 9:16 AM, Markus Trippelsdorf
> <markus@xxxxxxxxxxxxxxx> wrote:
> > Since the update to zsh-5.0.8 I observe the following issue:
> >
> > markus@x4 ~ % /var/tmp
> > markus@x4 tmp % cd <press tab key>
> > _alternative:shift:14: shift count must be <= $#
> > markus@x4 tmp % cd cxx-abi
> > markus@x4 cxx-abi % ..
> > markus@x4 tmp % cd cxx <press tab key>
> > _tags:comptags:67: no tags registered
> > _tags:comptags:67: no tags registered
> >
> > zsh-5.0.7 is fine.
>
> If you're using GLOB_ASSIGN, you'll have to disable it until the next
> release, or go back to .7, there's a bug that has been fixed causing
> completion to not work if that option is set. If you're not, then this
> is a new bug.
From my .zshrc:
...
setopt
,,,
NO_glob_assign \
--
Markus
autoload colors zsh/terminfo
if [[ "$terminfo[colors]" -ge 8 ]]; then
colors
fi
# auto completion
autoload -U compinit
compinit
# prompt
autoload -U promptinit
promptinit
#prompt gentoo
autoload -U zmv
# exports
header() {
print -nP "\e]2;$*\a"
}
chpwd() {
header "%~"
}
say() { if [[ "${1}" =~ -[a-z]{2} ]]; then local lang=${1#-}; local text="${*#$1}"; else local lang=${LANG%_*}; local text="$*";fi; mplayer "http://translate.google.com/translate_tts?ie=UTF-8&tl=${lang}&q=${text}" &> /dev/null ; }
# SCREENDIR will screw screen up
unset SCREENDIR
#export TERM="xterm-color"
export EDITOR="vim"
#export PAGER='col -b|/usr/local/share/vim/vim63/macros/less.sh'
export PAGER="less"
export LESSCOLOR="yes"
export NNTPSERVER='news.gmane.org'
export READNULLCMD=cat
#export LD_PRELOAD="/var/tmp/gperftools-read-only/.libs/libtcmalloc.so"
#export LD_PRELOAD="/usr/lib/libamdlibm.so"
#export LD_PRELOAD="/usr/lib64/libllalloc.so.1.3"
# Make sure no cores can be dumped while zsh is in charge. I don't know if
# this limit thing uses ulimit or what, but it seems to work..
limit coredumpsize 0
compctl -g '*(-/)' + -g '.*(-/)' -v cd pushd rmdir
compctl -k hosts -x 'p[2,-1]' -l '' -- rsh ssh
# completion for "man" by Gossamer <gossamer@xxxxxxxxxxxxxx> 980827
# This is damn funky. I'm going to do something similar for pinfo,
# hopefully.
compctl -b bindkey
compctl -v export
compctl -o setopt
compctl -v unset
compctl -o unsetopt
compctl -v vared
compctl -c which
compctl -c sudo
autoload edit-command-line; zle -N edit-command-line
bindkey -M vicmd v edit-command-line
# History things
HISTFILE=$HOME/.zshist
SAVEHIST=40000
HISTSIZE=40000
# Key bindings, useful.
bindkey -v
bindkey "\e[3~" delete-char
bindkey "\e[2~" yank #insert
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" history-search-backward
bindkey "\e[6~" history-search-forward
bindkey "^R" history-incremental-search-backward
bindkey "^[[Z" reverse-menu-complete
bindkey " " magic-space
bindkey '^[[A' history-beginning-search-backward # "Up"
bindkey '^[[B' history-beginning-search-forward # "Down"
bindkey "^Z" "menu-complete"
bindkey -s '^[[5~' 'cd -^Z' # "PageUp"
# Aliases
alias mv='nocorrect mv' # no spelling correction on mv
alias cp='nocorrect cp' # no spelling correction on cp
alias mkdir='nocorrect mkdir' # no spelling correction on mkdir
alias m="mutt -y"
alias ls="ls"
alias l="ls -la -G"
alias l.='ls -d .[a-zA-Z]*'
alias ll="ls -ahl"
alias lsd="find . -maxdepth 1 -type d|column"
alias d="find . -maxdepth 1 -type d|column"
alias xdvi='xdvi -keep'
alias mc=". /usr/libexec/mc/mc-wrapper.sh -u -S sand256"
#alias mc=". /usr/libexec/mc/mc-wrapper.sh -S xoria256"
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
alias djview='djview -geometry 1000x1020+350+0'
alias top='top -S'
alias pstree='pstree -apl'
alias make='nice -n 19 make'
alias ninja='nice -n 19 ninja'
alias weechat-curses="TERM=screen-256color LD_PRELOAD=/lib/libpthread.so.0 weechat-curses"
alias gdb="gdb -q"
alias grep="grep --color"
# Select Prompt
zstyle ':completion:*' menu select=1
# Expansion options
zstyle ':completion:::::' completer _complete _approximate
#zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) )'
zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX:t+$#SUFFIX:h)/3 )) )'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
#zstyle ':completion::prefix-1:*' completer _complete
#zstyle ':completion:incremental:*' completer _complete _correct
#zstyle ':completion:predict:*' completer _complete
zstyle ':completion:*' accept-exact-dirs 'yes'
# Completion caching
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ~/.zsh/cache
# Expand partial paths
zstyle ':completion:*' expand 'yes'
zstyle ':completion:*' squeeze-slashes 'yes'
# Include non-hidden directories in globbed file completions
# for certain commands
zstyle ':completion::complete:*' '\'
# Use menuselection for pid completion
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
# tag-order 'globbed-files directories' all-files
zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)'
# Don't complete backup files as executables
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
# Separate matches into groups
zstyle ':completion:*:matches' group 'yes'
# With commands like rm, it's annoying if you keep getting offered the same
# file multiple times. This fixes it. Also good for cp, et cetera..
zstyle ':completion:*:rm:*' ignore-line yes
zstyle ':completion:*:cp:*' ignore-line yes
# Describe each match group.
zstyle ':completion:*:descriptions' format "%B---- %d%b"
# Messages/warnings format
zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
# Describe options in full
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*:options' auto-description '%d'
# Simulate spider's old abbrev-expand 3.0.5 patch
zstyle ':completion:*:history-words' stop verbose
zstyle ':completion:*:history-words' remove-all-dups yes
zstyle ':completion:*:history-words' list false
# Follow GNU LS_COLORS
zmodload -i zsh/complist
zstyle ':completion:*:default' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:kill:*' list-colors '=%*=01;31'
# Subdivide man pages into sections
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*' group-name ''
zstyle ':completion:*:*:kill:*' command 'ps xf -u $USER -o pid,%cpu,cmd'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
zstyle ':completion:*:*:man:*' menu yes
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:descriptions' format "- %d -"
# zsh Options
setopt \
NO_all_export \
always_last_prompt \
always_to_end \
append_history \
auto_cd \
auto_list \
auto_menu \
auto_name_dirs \
auto_param_keys \
auto_param_slash \
auto_pushd \
auto_remove_slash \
NO_auto_resume \
bad_pattern \
bang_hist \
NO_beep \
brace_ccl \
correct_all \
NO_bsd_echo \
cdable_vars \
NO_chase_links \
clobber \
complete_aliases \
complete_in_word \
correct \
NO_correct_all \
csh_junkie_history \
NO_csh_junkie_loops \
NO_csh_junkie_quotes \
NO_csh_null_glob \
equals \
extended_glob \
extended_history \
function_argzero \
glob \
NO_glob_assign \
glob_complete \
NO_glob_dots \
glob_subst \
NO_hash_cmds \
NO_hash_dirs \
hash_list_all \
hist_allow_clobber \
hist_beep \
HIST_REDUCE_BLANKS \
hist_expire_dups_first \
hist_find_no_dups \
hist_ignore_all_dups \
hist_ignore_space \
NO_hist_no_store \
hist_verify \
NO_hup \
NO_ignore_braces \
NO_ignore_eof \
interactive_comments \
inc_append_history \
NO_list_ambiguous \
NO_list_beep \
list_types \
long_list_jobs \
magic_equal_subst \
NO_mail_warning \
NO_mark_dirs \
menu_complete \
multios \
nomatch \
notify \
NO_null_glob \
numeric_glob_sort \
NO_overstrike \
path_dirs \
posix_builtins \
NO_print_exit_value \
NO_prompt_cr \
prompt_subst \
pushd_ignore_dups \
NO_pushd_minus \
pushd_silent \
pushd_to_home \
rc_expand_param \
NO_rc_quotes \
NO_rm_star_silent \
NO_sh_file_expansion \
sh_option_letters \
short_loops \
NO_sh_word_split \
NO_single_line_zle \
NO_sun_keyboard_hack \
transient_rprompt \
unset \
NO_verbose \
zle
if [[ $TERM = "linux" ]]; then
echo -en "\e]P71e2320" #zen-black (norm. black)
echo -en "\e]P8709080" #zen-bright-black (norm. darkgrey)
echo -en "\e]P1705050" #zen-red (norm. darkred)
echo -en "\e]P9dca3a3" #zen-bright-red (norm. red)
echo -en "\e]P260b48a" #zen-green (norm. darkgreen)
echo -en "\e]PAc3bf9f" #zen-bright-green (norm. green)
echo -en "\e]P3dfaf8f" #zen-yellow (norm. brown)
echo -en "\e]PBf0dfaf" #zen-bright-yellow (norm. yellow)
echo -en "\e]P4506070" #zen-blue (norm. darkblue)
echo -en "\e]PC94bff3" #zen-bright-blue (norm. blue)
echo -en "\e]P5dc8cc3" #zen-purple (norm. darkmagenta)
echo -en "\e]PDec93d3" #zen-bright-purple (norm. magenta)
echo -en "\e]P68cd0d3" #zen-cyan (norm. darkcyan)
echo -en "\e]PE93e0e3" #zen-bright-cyan (norm. cyan)
echo -en "\e]P7dcdccc" #zen-white (norm. lightgrey)
echo -en "\e]PFffffff" #zen-bright-white (norm. white)
fi
if [[ $TERM = "screen-bce" ]]; then
export TERM="screen"
fi
source /etc/profile
#export $(dbus-launch)
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export PATH=/var/tmp/texlive_2015/bin/x86_64-linux:$PATH
export MANPATH=/var/tmp/texlive_2015/texmf-dist/doc/man:$MANPATH
export KDE_EXTRA_FSYNC=1
prompt gentoo
Messages sorted by:
Reverse Date,
Date,
Thread,
Author