zsh-users
 help / color / mirror / code / Atom feed
From: "Eric Mangold" <teratorn@world-net.net>
To: "Fafa Hafiz Krantz" <fteg@london.com>, zsh-users@sunsite.dk
Subject: Re: zsh login going remarkably slow
Date: Tue, 10 May 2005 10:36:16 +1000	[thread overview]
Message-ID: <op.sqjamqu56k1y1x@aspen> (raw)
In-Reply-To: <20050509192122.961794BEAE@ws1-1.us4.outblaze.com>

Could it be that it's rebuilding ~/.zcompdump every time? After a system  
upgrade I started having that problem: .zcompdump was re-generated even if  
it existed. I didn't figure out the root cause but just started using the  
-C switch to compinit. This made it fast again.

-Eric

On Tue, 10 May 2005 05:21:22 +1000, Fafa Hafiz Krantz <fteg@london.com>  
wrote:

>
> hey!
>
> i just installed zsh on both my freebsd boxes.
> on one of them it works like a charm. on the other, it doesn't.
>
> for this other box, it takes a long time for the prompt to appear.
> also for it to re-appear when i su to root.
>
> this /etc/zshrc file are used for both:
>
> umask 022
>
> alias vi='vim'
> alias j='jobs -l'
> alias h='history'
> alias ls='ls -G'
> alias cd..='cd ..'
> alias cd...='cd ../..'
> alias cd....='cd ../../..'
> alias cd.....='cd ../../../..'
> alias cd......='cd ../../../../..'
> alias cd/='cd /'
> alias wf='w -f'
> alias ws='w -s'
> alias df='df -h'
> alias ftp='lftp'
>
> alias pfdump='tcpdump -n -e -ttt -r /var/log/pflog'
> alias pfmon='tcpdump -n -e -ttt -i pflog0'
> alias pfreload='pfctl -F all && pfctl -f /etc/pf.conf'
>
> autoload -U compinit
> compinit
>
> zstyle ':completion:*' completer _complete _prefix
> zstyle ':completion::prefix-1:*' completer _complete
> zstyle ':completion:incremental:*' completer _complete _correct
> zstyle ':completion:predict:*' completer _complete
> zstyle ':completion::complete:*' use-cache 1
> zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
> zstyle ':completion:*' expand 'yes'
> zstyle ':completion:*' squeeze-slashes 'yes'
> zstyle ':completion::complete:*' '\'
> zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)'
> zstyle ':completion:*:complete:-command-::commands' ignored-patterns  
> '*\~'
> zstyle ':completion:*:matches' group 'yes'
> zstyle ':completion:*:options' description 'yes'
> zstyle ':completion:*:options' auto-description '%d'
> zstyle ':completion:*:history-words' stop verbose
> zstyle ':completion:*:history-words' remove-all-dups yes
> zstyle ':completion:*:history-words' list false
> zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
>
> PROMPT=$'%{\e[01;34m%}(%{\e[22;34m%}%n%{\e[01;30m%}@%{\e[22;34m%}%m%{\e[01;34m%})%{\e[01;34m%}%{\e[01;34m%}(%{\e[22;34m%}%D{%H:%M}%{\e[01;30m%}:%{\e[22;34m%}%D{%m/%d/%y}%{\e[01;34m%})%{\e[01;30m\e[00m%}\n%{\e[01;34m%}(%{\e[22;34m%}%#%{\e[01;30m%}:%{\e[22;34m%}%~%{\e[01;34m%})%{\e[01;30m\e[00m%}  
> '
>
> if [[ `whoami` = root ]] then
> PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}:%{\e[22;31m%}%D{%m/%d/%y}%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})%{\e[01;30m\e[00m%}  
> '
> fi
>
> i tried recompiling zsh, but that didn't make no difference.
> i don't know how to capture the output of zsh -x.
>
> zsh -x > file doesn't work, and my entire shell gets twisted after
> running zsh -x.
>
> last but not the least, i was wondering if anyone could help me
> split my prompt line up. i've tried this here. it works, but i get
> an error message saying there's no such command followed by a paste
> of the 2nd line here. if it's due to the whitespace below PROMPT,
> well i kinda want it there because it's superneat.
>
> PROMPT=$'%{\e[01;34m%}(%{\e[22;34m%}%n%{\e[01;30m%}@'\
>        $'%{\e[22;34m%}%m%{\e[01;34m%})%{\e[01;34m%}%{\e[01;34m%}('\
>        $'%{\e[22;34m%}%D{%H:%M}%{\e[01;30m%}:%{\e[22;34m%}%D{%m/%d/%y}'\
>        $'%{\e[01;34m%})%{\e[01;30m\e[00m%}%{\n%}%{\e[01;34m%}('\
>        $'%{\e[22;34m%}%#%{\e[01;30m%}:%{\e[22;34m%}%~%{\e[01;34m%})'\
>        $'%{\e[01;30m\e[00m%} '
>
> thanks!
>
> --
>
> Fafa Hafiz Krantz
>   Research Designer @ http://www.home.no/barbershop
>   Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf
>
>



  reply	other threads:[~2005-05-10  0:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09 19:21 Fafa Hafiz Krantz
2005-05-10  0:36 ` Eric Mangold [this message]
2005-05-10  3:06 ` Bart Schaefer
2005-05-10  9:26 Fafa Hafiz Krantz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.sqjamqu56k1y1x@aspen \
    --to=teratorn@world-net.net \
    --cc=fteg@london.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).