Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh startup really slow after upgrade to fedora 15
- X-seq: zsh-users 16312
- From: Renato Botelho <rbgarga@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Zsh startup really slow after upgrade to fedora 15
- Date: Mon, 5 Sep 2011 14:26:55 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=5VFGbXgtUaNDrGC6xAui0avZlXvwDWOOm+DkioGbwk8=; b=q56nC9kSpMI2xmcM42gBGqM9Q6bJrwkWo7yTl0JDOK6rsRwdS68msULZem8aaP9yT1 sLvZEBIDADsXEI5IhCVLTtTtGXT0+YJTfjBibk2+w2Zo5X5+AoGH1LXyuNm2C9UZQVWZ hAV69XQqIoTjsEaEOqb34Pj6o2Ap0nwefb48I=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
I've been using zsh for some years, first on FreeBSD and MacOSX, and now
on Linux.
After I upgrade my fedora 14 to 15, it became incredibly slow to open a new
terminal, follow my .zshrc, without comments:
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:~/bin
export LC_COLLATE=C
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
zstyle ':completion:*:expand:*' tag-order all-expansions
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
[ -r ~/.ssh/known_hosts ] &&
_ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\
*}%%,*}) || _ssh_hosts=()
[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s:
:)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
|| _etc_hosts=()
hosts=(
"$_ssh_hosts[@]"
"$_etc_hosts[@]"
`hostname`
localhost
)
zstyle ':completion:*:hosts' hosts $hosts
zstyle ':completion:*' special-dirs true
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' matcher-list 'm:{# a-z}={# A-Z}'
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
zstyle '*' hosts $hosts
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o'
'*?.c~' '*?.old' '*?.pro'
autoload -U compinit
compinit
typeset -ga preexec_functions
typeset -ga precmd_functions
typeset -ga chpwd_functions
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=1000
export LISTMAX=1000
export EDITOR=vim
export NULLFS=1
export JAIL=/var/jail/data
export GPG_TTY=`tty`
bindkey -v
bindkey -M vicmd "j" history-search-forward
bindkey -M vicmd "k" history-search-backward
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
bindkey -M viins "^[[S" insert-last-word
bindkey -M viins "^[[18~" insert-last-word
alias more='less'
alias ftp='ncftp'
alias j='jobs -l'
alias ff='find ./ -iname $*'
alias ps='ps auxww'
alias l='ls -lF'
alias ls='ls -F'
alias vi='vim'
alias l.='ls -dF .*'
alias gvim="/usr/bin/gvim -geom 145x60 -font \"Terminus 7\""
alias ...='cd ../..'
alias sbp='ssh -l bpuser $*'
alias sgn='ssh -l gnuser $*'
alias x='startx >&! /tmp/x.out $*'
alias ssh-kr='ssh-keygen -R $*'
alias vless='vim -u /usr/local/share/vim/vim*/macros/less.vim'
alias pasteplain='wgetpaste -s pocoo -X -l "Plain Text" $*'
alias pastec='wgetpaste -s pocoo -X -l "C" $*'
alias pastediff='wgetpaste -s pocoo -X -l "Unified Diff" $*'
alias dcvs='env CVS_RSH=ssh cvs -d garga@xxxxxxxxxxxxxxxx:/home/dcvs'
alias pcvs='env CVS_RSH=ssh cvs -d garga@xxxxxxxxxxxxxxxx:/home/pcvs'
alias projcvs='env CVS_RSH=ssh cvs -d garga@xxxxxxxxxxxxxxxxxxx:/home/projcvs'
alias scvs='env CVS_RSH=ssh cvs -d garga@xxxxxxxxxxxxxxxx:/home/ncvs'
alias bpcvs='env CVS_RSH=ssh CVS_SERVER="env TMPDIR=/share/cvs/tmp
cvs" cvs -d garga@tools:/share/cvs/BluePex'
alias btcvs='CVS_RSH=ssh && cvs -d garga@cvs:/share/cvs/BlueTest'
alias tcvs='CVS_RSH=ssh && cvs -d garga@cvs:/share/cvs/bptools'
if [ "$LOGNAME" = "root" ]; then
alias mutt='mutt -y'
fi
for f in lp lpq lpr lprm; do
[ -f /usr/local/bin/${f} ] \
&& alias ${f}="/usr/local/bin/$f \$*"
done
setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" } # csh compatibility
freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done }
git_prompt_info() {
ref=$(/usr/bin/git symbolic-ref HEAD 2> /dev/null) || return
echo "(${ref#refs/heads/})"
}
PROMPT='%n@%B%m%b:%(#.%/#.%~>) '
RPROMPT='%B$(git_prompt_info)%b'
setopt notify pushdtohome cdablevars autolist
setopt autocd longlistjobs NO_BEEP braceccl
setopt autoresume histignoredups pushdsilent noclobber
setopt autopushd pushdminus extendedglob rcquotes mailwarning
setopt printexitvalue prompt_subst
unsetopt bgnice autoparamslash listambiguous globdots recexact
case $TERM in
xterm*|rxvt*|rxvt-256color*)
precmd () { print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
[ -x /usr/bin/fortune ] && \
/usr/bin/fortune -s && \
echo ""
Is there anything i can do to make it startup faster? Am I missing something
obvious?
Let me know if you need more data from my environment.
Regards
--
Renato Botelho
Messages sorted by:
Reverse Date,
Date,
Thread,
Author