zsh-users
 help / color / mirror / code / Atom feed
* Help help, prompt problems here!
@ 2005-05-08 19:37 Fafa Hafiz Krantz
  2005-05-09  2:35 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Fafa Hafiz Krantz @ 2005-05-08 19:37 UTC (permalink / raw)
  To: zsh-users


Hello everyone!

I am having some difficulty on one of the two boxes I installed
zsh on today. The box having problems won't let no prompt appear
unless I type CTRL+C. Even after I do that, it's not the prompt
I've specified in /etc/zshrc.

Also, I need help modifying the theme 'elite2' into looking just
a little bit better. I've done a 'vared PS1' to get the prompt
out of where ever it's hidden.

It looks like this (with a nice green color scheme):

(johann@urban)(1/ttyp3)(09:26P:05/08/05)-
(%:~)-

I need it to look like this though:

(johann@urban)(21:26:05/08/05)-
(%:~)-

Yeah, basically the 1/ttyp3 has been removed and the time format
changed to the European format. 'vared PS1' returns:

%{^[[01;32m%}(%{^[[22;32m%}%n%{^[[01;30m%}@%{^[[22;32m%}%m%{^[[01;32m%})%{^[[01;32m%}(%{^[[22;32m%}%!%{^[[01;30m%}/%{^[[22;32m%}%y%{^[[01;32m%})%{^[[01;32m%}(%{^[[22;32m%}%D{%I:%M%P}%{^[[01;30m%}:%{^[[22;32m%}%D{%m/%d/%y}%{^[[01;32m%})%{^[[01;30m%}-%{^[[00m%}
%{^M%}%{^[[01;32m%}(%{^[[22;32m%}%#%{^[[01;30m%}:%{^[[22;32m%}%~%{^[[01;32m%})%{^[[01;30m%}-%{^[[00m%}

And here is my /etc/zshrc:

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'

ports=/usr/ports
src=/usr/src
var=/var

autoload -U compinit
compinit

autoload promptinit
promptinit

prompt elite2 green

if [[ `whoami` = root ]] then
prompt elite2 red
fi

if [[ $TERM = eterm ]] then
export TERM=xterm-color
fi

I hope someone can help me.
Thanks!

--

Fafa Hafiz Krantz
  Research Designer @ http://www.bleed.no

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help help, prompt problems here!
  2005-05-08 19:37 Help help, prompt problems here! Fafa Hafiz Krantz
@ 2005-05-09  2:35 ` Bart Schaefer
  2005-05-09  9:39   ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2005-05-09  2:35 UTC (permalink / raw)
  To: zsh-users

On May 8,  2:37pm, Fafa Hafiz Krantz wrote:
} 
} I am having some difficulty on one of the two boxes I installed
} zsh on today. The box having problems won't let no prompt appear
} unless I type CTRL+C. Even after I do that, it's not the prompt
} I've specified in /etc/zshrc.

As a general principle, you should be very careful of what you put into
the /etc/z* files, as opposed the $HOME/.z* files of each user.

For example:

} prompt elite2 green
} 
} if [[ `whoami` = root ]] then
} prompt elite2 red
} fi

This would be much better handled by placing "prompt elite2 red" in
~root/.zshrc and "prompt elite2 green" in ~fteg/.zshrc (or whatever
your non-root user account is, if it's not "fteg").

However, if you must test for root in /etc/z*, the best way is simply
to check with [[ $EUID = 0 ]] or even (( EUID == 0 )).

Returning to the original problem -- it seems likely that either (a)
there's something in /etc/zshenv that you're not telling us about, and
that something is stuck, possibly waiting for input, until you hit the
ctrl+c, or (b) `whoam` itself is stuck for some reason, and when you
hit ctrl+c it fails, so the "if" fails, so "prompt elite2 red" is not
executed.

You could find out which of these things is happening by placing a
"set -x" at the top of /etc/zshenv, or by running "zsh -x".

} Also, I need help modifying the theme 'elite2' into looking just
} a little bit better.

Find the prompt_elite2_setup file with this:

    print ${^fpath}/prompt_elite2_setup(N)

Copy that file to a new name in some directory in $fpath (it does not
have to be the same directory), such as prompt_fteg_setup -- the string
between the underscores is the theme name, so this is creating a new
theme named "fteg".

Edit prompt_fteg_setup and globally search-and-replace to change all
occurrences of "elite2" to "fteg".  Then find the assignment to PS1,
right in the middle of the prompt_fteg_setup function, and remove the
substring

    $parens($text%!$punctuation_color/$text%y$parens)$text

That'll leave you with two consective meta+d (0xc4) characters, of which
you should delete one.  I think it was bad form of the elite2 author to
leave raw non-ascii characters there, but the entire "for code in ..."
loop is extraneous as well ... it appears just to be sloppy or incomplete
copying from prompt_elite_setup.

Anyway, in that same long ugly assignment, the time is displayed with

    %D{%I:%M%P}

and the date with

    %D{%m/%d/%y}

you need to edit the stuff inside the { } to change the format.  See
"man strftime" for details.

Having finished with those edits and saved the file so that it's in
a directory in $fpath the next time zsh starts up, you should be able
to change "prompt elite2 green" to "prompt fteg green".


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help help, prompt problems here!
  2005-05-09  2:35 ` Bart Schaefer
@ 2005-05-09  9:39   ` Peter Stephenson
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Stephenson @ 2005-05-09  9:39 UTC (permalink / raw)
  To: zsh-users

Bart Schaefer wrote:
> ... or (b) `whoam` itself is stuck for some reason, and when you
> hit ctrl+c it fails, so the "if" fails, so "prompt elite2 red" is not
> executed.

You should be able to replace `whoami` with $USERNAME, since that gets
set by the shell (more precisely, it gets extracted by the shell from
the system when you read it).

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help help, prompt problems here!
  2005-05-09 16:59 Fafa Hafiz Krantz
@ 2005-05-10  2:55 ` Bart Schaefer
  0 siblings, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 2005-05-10  2:55 UTC (permalink / raw)
  To: zsh-users

On May 9, 11:59am, Fafa Hafiz Krantz wrote:
} 
} By the way, why doesn't autocompletion work,
} like my good old tcsh?

Completion is what you're enabling when you run compinit.  If it's not
working, it's probably related to all the other problems you're having
with zsh startup.

Asking "Why doesn't _________ work?" for any blank you might choose, is
way to nonspecific for anyone to give a useful answer.  We need to know
(at the least) what you expect, and how what you observe is different.

As for capturing the output of "zsh -x" ...

Create an /etc/zshrc file.  Place in it these four lines:

print "Trace output is in /tmp/zsh-x.$$"
exec 2>/tmp/zsh-x.$$
set -x
function precmd { set +x; exec 2>&1; unfunction precmd }

Then run zsh the way you normally would.  When the shell reaches the
point where you think you have to type ctlr+c (assuming you're still
having that problem), DO NOT type the ctrl+c.  Instead, use another
terminal (another xterm window or another virtual console or whatever)
to examine the last several lines of the trace file.  This will tell
you what the "stuck" shell is presently doing.

If the shell gets all the way up to printing a prompt, then all is
well.  In any event, please DO NOT mail the entire file to this list.
The last ten lines or so should be enough.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help help, prompt problems here!
@ 2005-05-09 16:59 Fafa Hafiz Krantz
  2005-05-10  2:55 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Fafa Hafiz Krantz @ 2005-05-09 16:59 UTC (permalink / raw)
  To: Bart Schaefer, zsh-users; +Cc: Peter Stephenson


Here is my zshrc:

By the way, why doesn't autocompletion work,
like my good old tcsh?

-------------------------------------------------------------

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:*:descriptions' format "%B---- %d%b"
zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
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

-------------------------------------------------------------

This is all my buffer could handle.
zsh -x | more or zsh -x | less didn't work.

/4.2.5/functions/Completion/Unix/_lp /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ls /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_lsof /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_lynx /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_lzop /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mail /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mailboxes /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_make /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_man /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mencal /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mh /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mime_types /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mount /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mpc /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mt /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mtools /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mtr /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mutt /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_my_accounts /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mysql_utils /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_mysqldiff /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ncftp /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_net_interfaces /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_netcat /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_newsgroups /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_nice /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_nmap /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_nslookup /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_other_accounts /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pack /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_patch /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_path_files /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pbm /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pdf /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_perforce /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_perl /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_perl_basepods /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_perl_modules /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_perldoc /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_php /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pids /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pine /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ports /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_postfix /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_prcs /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_printenv /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_printers /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ps /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_pspdf /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_psutils /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_python /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_raggle /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_rar /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_rcs /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_renice /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_rlogin /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_rsync /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ruby /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sablotron /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_samba /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sccs /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_screen /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sed /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_services /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sh /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_signals /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_slrn /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_socket /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_spamassassin /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_ssh /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_strip /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_stty /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_su /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_subversion /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sudo /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_sysctl /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tar /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tar_archive /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_telnet /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_terminals /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tex /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_texi /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_texinfo /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tidy /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tiff /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tilde_files /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_time_zone /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tin /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_tla /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_unace /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_uniq /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_urls /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_user_admin /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_user_at_host /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_users /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_users_on /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_vorbis /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_vux /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_w3m /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_webbrowser /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_wget /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_whereis /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_whois /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_wiggle /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_xargs /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_xmlsoft /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_yodl /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_yp /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_zcat /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_zdump /usr/local/share/zsh/4.2.5/functions/Completion/Unix/_zip /usr/local/share/zsh/4.2.5/functions/Completion/X/_acroread /usr/local/share/zsh/4.2.5/functions/Completion/X/_dcop /usr/local/share/zsh/4.2.5/functions/Completion/X/_gnome-gv /usr/local/share/zsh/4.2.5/functions/Completion/X/_gqview /usr/local/share/zsh/4.2.5/functions/Completion/X/_gv /usr/local/share/zsh/4.2.5/functions/Completion/X/_kfmclient /usr/local/share/zsh/4.2.5/functions/Completion/X/_mozilla /usr/local/share/zsh/4.2.5/functions/Completion/X/_mplayer /usr/local/share/zsh/4.2.5/functions/Completion/X/_nedit /usr/local/share/zsh/4.2.5/functions/Completion/X/_netscape /usr/local/share/zsh/4.2.5/functions/Completion/X/_vnc /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_arguments /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_borderwidth /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_color /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_colormapid /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_cursor /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_display /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_extension /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_font /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_geometry /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_keysym /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_locale /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_modifier /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_name /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_resource /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_selection_timeout /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_title /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_utils /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_visual /usr/local/share/zsh/4.2.5/functions/Completion/X/_x_window /usr/local/share/zsh/4.2.5/functions/Completion/X/_xauth /usr/local/share/zsh/4.2.5/functions/Completion/X/_xdvi /usr/local/share/zsh/4.2.5/functions/Completion/X/_xfig /usr/local/share/zsh/4.2.5/functions/Completion/X/_xloadimage /usr/local/share/zsh/4.2.5/functions/Completion/X/_xmodmap /usr/local/share/zsh/4.2.5/functions/Completion/X/_xset /usr/local/share/zsh/4.2.5/functions/Completion/X/_xt_arguments /usr/local/share/zsh/4.2.5/functions/Completion/X/_xt_session_id /usr/local/share/zsh/4.2.5/functions/Completion/X/_xterm /usr/local/share/zsh/4.2.5/functions/Completion/X/_xv /usr/local/share/zsh/4.2.5/functions/Completion/X/_xwit /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_alias /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_aliases /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_arrays /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_assign /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_autocd /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_bindkey /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_brace_parameter /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_builtin /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_cd /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_command /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_command_names /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_compdef /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_condition /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_default /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_directory_stack /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_dirs /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_disable /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_echotc /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_echoti /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_emulate /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_enable /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_equal /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_fc /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_file_descriptors /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_first /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_functions /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_hash /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_in_vared /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_jobs /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_jobs_bg /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_jobs_builtin /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_jobs_fg /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_kill /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_limit /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_limits /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_math /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_mere /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_options /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_options_set /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_options_unset /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_parameter /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_parameters /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_precommand /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_print /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_prompt /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_read /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_redirect /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_sched /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_set /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_setopt /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_source /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_stat /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_subscript /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_suffix_alias_files /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_tilde /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_trap /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_ttyctl /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_typeset /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_ulimit /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_unhash /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_unsetopt /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_value /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_vared /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_vars /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_wait /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_which /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zcompile /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zed /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zftp /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zle /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zmodload /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zmv /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zpty /usr/local/share/zsh/4.2.5/functions/Completion/Zsh/_zstyle )
+compaudit:81> [[ ask == use ]]
+compaudit:89> local GROUP GROUPMEM _i_pw _i_gid _i_ulwdirs
+compaudit:90> (( UID == EUID  ))
+compaudit:91> getent group johann
+compaudit:91> IFS=: +compaudit:91> read GROUP _i_pw _i_gid GROUPMEM
+getent:1> [[ johann == '<->' ]]
+getent:4> grep '^johann:' /etc/group
+compaudit:106> [[ '' == johann ]]
+compaudit:110> _i_wdirs=( )
+compaudit:114> [[ -f /etc/debian_version ]]
+compaudit:120> _i_wdirs=( )
+compaudit:121> _i_wfiles=( )
+compaudit:123> case 0:0 (0:0)
+compaudit:124> _i_q=''
+compaudit:130> [[ -n '' ]]
+compaudit:137> return 0
+compinit:437> autoload -Uz compdump compinstall
+compinit:441> _i_done=''
+compinit:443> [[ -f /home/johann/.zcompdump ]]
+compinit:444> [[ -n yes ]]
+compinit:445> read -rA _i_line
+compinit:446> [[ _i_autodump -eq 1 && 426 -eq 426 && 4.2.5 == 4.2.5 ]]
+compinit:449> . /home/johann/.zcompdump
+/home/johann/.zcompdump:3> _comps=( -command-line- _normal -redirect-,-default-,-default- _files '-redirect-,<,bunzip2' _bzip2 '-redirect-,<,bzip2' _bzip2 '-redirect-,<,compress' _compress '-redirect-,<,gunzip' _gzip '-redirect-,<,gzip' _gzip '-redirect-,<,uncompress' _compress '-redirect-,>,bzip2' _bzip2 '-redirect-,>,compress' _compress '-redirect-,>,gzip' _gzip -value-,ANT_ARGS,-default- _ant -value-,CFLAGS,-default- _gcc -value-,CPPFLAGS,-default- _gcc -value-,GREP_OPTIONS,-default- _grep -value-,GZIP,-default- _gzip -value-,LANG,-default- _locales -value-,LANGUAGE,-default- _locales -value-,LDFLAGS,-default- _gcc -value-,LESS,-default- _less -value-,LESSCHARSET,-default- _less -value-,TERMINFO_DIRS,-default- _dir_list -value-,VALGRIND_OPTS,-default- _valgrind Mail _mail a2ps _a2ps aaaa _hosts aap _aap ali _mh animate _imagemagick ant _ant antiword _antiword apache2ctl _apachectl apachectl _apachectl apm _apm appletviewer _java apropos _man apt-cache _apt apt-cdrom _apt apt-config _apt apt-get _apt apt-move _apt-move apt-show-versions _apt-show-versions aptitude _aptitude arp _arp arping _arping attr _attr auto-apt _auto-apt baz _baz bison _bison bogofilter _bogofilter bogotune _bogofilter bogoutil _bogofilter btdownloadcurses _bittorrent btdownloadgui _bittorrent btdownloadheadless _bittorrent btlaunchmany _bittorrent btlaunchmanycurses _bittorrent btmakemetafile _bittorrent btreannounce _bittorrent btrename _bittorrent bts _bts btshowmetainfo _bittorrent bttrack _bittorrent bug _bug buildhash _ispell bunzip2 _bzip2 burst _mh bzcat _bzip2 bzip2 _bzip2 bzip2recover _bzip2 cal _cal cdcd _cdcd cdrecord _cdrecord chflags _chflags chgrp _chown chkconfig _chkconfig chmod _chmod chown _chown clear _nothing combine _imagemagick comp _mh composite _imagemagick compress _compress configure _configure convert _imagemagick cpio _cpio cvs _cvs cvsup _cvsup cygcheck _cygcheck cygcheck.exe _cygcheck cygpath _cygpath cygpath.exe _cygpath cygrunsrv _cygrunsrv cygrunsrv.exe _cygrunsrv cygserver _cygserver cygserver.exe _cygserver cygstart _cygstart cygstart.exe _cygstart darcs _darcs dch _debchange dd _dd debchange _debchange debfoster _debfoster debsign _debsign defaults _defaults df _directories dict _dict diff _diff dircmp _directories display _imagemagick dist _mh dmake _make dosdel _floppy dosread _floppy dpkg _dpkg dpkg-deb _dpkg dpkg-reconfigure _dpkg dpkg-source _dpkg_source dput _dput du _du dumper _dumper dumper.exe _dumper dupload _dupload dvibook _dvi dviconcat _dvi dvicopy _dvi dvidvi _dvi dvips _dvi dviselect _dvi dvitodvi _dvi dvitype _dvi ecasound _ecasound egrep _grep elinks _elinks elm _elm enscript _enscript explodepkg _pkgtool extcheck _java fakeroot _fakeroot false _nothing fetchmail _fetchmail fgrep _grep figlet _figlet find _find findaffix _ispell finger _finger fink _fink flex _flex flist _mh flists _mh folder _mh folders _mh forw _mh fsh _fsh ftp _hosts g++ _gcc gcc _gcc gdb _gdb gdiff _diff getclip _getclip getclip.exe _getclip getconf _getconf getent _getent getfacl _getfacl getfacl.exe _getfacl getfattr _attr ghostscript _gs global _global gls _ls gmake _make gpg _gpg gpgv _gpg gphoto2 _gphoto2 gprof _gprof grep _grep groupdel _groups gs _gs gunzip _gzip gzcat _gzip gzip _gzip hdiutil _hdiutil host _hosts icombine _ispell iconv _iconv identify _imagemagick ifconfig _ifconfig ifdown _net_interfaces ifup _net_interfaces ijoin _ispell import _imagemagick inc _mh insmod _modutils installpkg _pkgtool iptables _iptables iptables-restore _iptables iptables-save _iptables irssi _irssi ispell _ispell jar _java jarsigner _java java _java javac _java javadoc _java javah _java javap _java jdb _java joe _joe keytool _java killall _killall killall5 _killall kldload _kld kldunload _kld last _last lastb _last less _less lftp _ncftp links _links lintian _lintian linux _uml loadkeys _loadkeys log _nothing logname _nothing look _look losetup _losetup lp _lp lpq _lp lpr _lp lprm _lp ls _ls lscfg _lscfg lsdev _lsdev lslv _lslv lsmod _modutils lsof _lsof lspv _lspv lsvg _lsvg lynx _lynx lzop _lzop mail _mail mailx _mail make _make make-kpkg _make-kpkg makepkg _pkgtool man _man mark _mh mattrib _mtools mcd _mtools mcopy _mtools mdel _mtools mdeltree _mtools mdir _mtools mdu _mtools mencal _mencal mformat _mtools mhlist _mh mhmail _mh mhn _mh mhparam _mh mhpath _mh mhshow _mh mhstore _mh mkshortcut _mkshortcut mkshortcut.exe _mkshortcut mkzsh _mkzsh mkzsh.exe _mkzsh mlabel _mtools mmd _mtools mmount _mtools mmove _mtools modinfo _modutils modprobe _modutils mogrify _imagemagick mondoarchive _mondo montage _imagemagick mount _mount mpc _mpc mrd _mtools mread _mtools mren _mtools mt _mt mtoolstest _mtools mtr _mtr mtype _mtools munchlist _ispell mush _mail mutt _mutt mx _hosts mysql _mysql_utils mysqladmin _mysql_utils mysqldiff _mysqldiff mysqldump _mysql_utils mysqlimport _mysql_utils mysqlshow _mysql_utils nail _mail native2ascii _java nc _netcat ncal _cal ncftp _ncftp netcat _netcat newgrp _groups next _mh nice _nice nmap _nmap ns _hosts nslookup _nslookup ntalk _other_accounts odme _object_classes odmget _object_classes odmshow _object_classes open _open pack _pack packf _mh patch _patch pcat _pack pick _mh ping _hosts pkg_add _bsd_pkg pkg_create _bsd_pkg pkg_deinstall _pkgtools pkg_delete _bsd_pkg pkg_fetch _pkgtools pkg_glob _pkgtools pkg_info _bsd_pkg pkg_sort _pkgtools pkg_which _pkgtools pkgdb _pkgtools pkgtool _pkgtool pmake _make policytool _java portcvsweb _pkgtools portinstall _pkgtools ports_glob _pkgtools portsclean _pkgtools portsdb _pkgtools portupgrade _pkgtools portversion _pkgtools prev _mh pscp _pscp pscp.exe _pscp putclip _putclip putclip.exe _putclip querybts _bug refile _mh removepkg _pkgtool repl _mh reportbug _bug rmdir _directories rmf _mh rmic _java rmid _java rmiregistry _java rmm _mh rmmod _modutils rpm _rpm rup _hosts rwho _hosts scan _mh serialver _java service _service setfattr _attr show _mh smit _smit smitty _smit soa _hosts sync _nothing talk _other_accounts times _nothing traceroute _hosts true _nothing tryaffix _ispell tunctl _uml txt _hosts uml_mconsole _uml uml_moo _uml uml_switch _uml umount _mount uncompress _compress unpack _pack update-alternatives _update-alternatives update-rc.d _update-rc.d upgradepkg _pkgtool urpme _urpmi urpmi _urpmi urpmi.addmedia _urpmi urpmi.removemedia _urpmi urpmi.update _urpmi urpmq _urpmi valgrind _valgrind wajig _wajig whatis _man whoami _nothing whom _mh xping _hosts xtp _imagemagick ytalk _other_accounts zmail _mail zone _hosts )
+/home/johann/.zcompdump:403> _services=( '-redirect-,<,bunzip2' bunzip2 '-redirect-,<,bzip2' bzip2 '-redirect-,<,compress' compress '-redirect-,<,gunzip' gunzip '-redirect-,<,gzip' gzip '-redirect-,<,uncompress' uncompress '-redirect-,>,bzip2' bunzip2 '-redirect-,>,compress' uncompress '-redirect-,>,gzip' gunzip Mail mail bzcat bunzip2 dch debchange gzcat gunzip mailx mail nail mail pcat unpack )
+/home/johann/.zcompdump:422> _patcomps=( '*/(init|rc[0-9S]#).d/*' _init_d )
+/home/johann/.zcompdump:426> _postpatcomps=( '(p[bgpn]m*|*top[bgpn]m)' _pbm '-value-,*PATH,-default-' _dir_list '-value-,*path,-default-' _directories '-value-,LC_*,-default-' _locales )
+/home/johann/.zcompdump:433> _compautos=( _call_program +X )
+/home/johann/.zcompdump:437> zle -C _bash_complete-word .complete-word _bash_completions
+/home/johann/.zcompdump:438> zle -C _bash_list-choices .list-choices _bash_completions
+/home/johann/.zcompdump:439> zle -C _complete_debug .complete-word _complete_debug
+/home/johann/.zcompdump:440> zle -C _complete_help .complete-word _complete_help
+/home/johann/.zcompdump:441> zle -C _complete_tag .complete-word _complete_tag
+/home/johann/.zcompdump:442> zle -C _correct_filename .complete-word _correct_filename
+/home/johann/.zcompdump:443> zle -C _correct_word .complete-word _correct_word
+/home/johann/.zcompdump:444> zle -C _expand_alias .complete-word _expand_alias
+/home/johann/.zcompdump:445> zle -C _expand_word .complete-word _expand_word
+/home/johann/.zcompdump:446> zle -C _history-complete-newer .complete-word _history_complete_word
+/home/johann/.zcompdump:447> zle -C _history-complete-older .complete-word _history_complete_word
+/home/johann/.zcompdump:448> zle -C _list_expansions .list-choices _expand_word
+/home/johann/.zcompdump:449> zle -C _most_recent_file .complete-word _most_recent_file
+/home/johann/.zcompdump:450> zle -C _next_tags .list-choices _next_tags
+/home/johann/.zcompdump:451> zle -C _read_comp .complete-word _read_comp
+/home/johann/.zcompdump:452> bindkey '^X^R' _read_comp
+/home/johann/.zcompdump:453> bindkey '^X?' _complete_debug
+/home/johann/.zcompdump:454> bindkey '^XC' _correct_filename
+/home/johann/.zcompdump:455> bindkey '^Xa' _expand_alias
+/home/johann/.zcompdump:456> bindkey '^Xc' _correct_word
+/home/johann/.zcompdump:457> bindkey '^Xd' _list_expansions
+/home/johann/.zcompdump:458> bindkey '^Xe' _expand_word
+/home/johann/.zcompdump:459> bindkey '^Xh' _complete_help
+/home/johann/.zcompdump:460> bindkey '^Xm' _most_recent_file
+/home/johann/.zcompdump:461> bindkey '^Xn' _next_tags
+/home/johann/.zcompdump:462> bindkey '^Xt' _complete_tag
+/home/johann/.zcompdump:463> bindkey '^X~' _bash_list-choices
+/home/johann/.zcompdump:464> bindkey '^[,' _history-complete-newer
+/home/johann/.zcompdump:465> bindkey '^[/' _history-complete-older
+/home/johann/.zcompdump:466> bindkey '^[~' _bash_complete-word
+/home/johann/.zcompdump:468> autoload -Uz _a2ps _aap _all_labels _all_matches _alternative _ant _antiword _apachectl _apm _approximate _apt _apt-move _apt-show-versions _aptitude _arg_compile _arguments _arp _arping _attr _auto-apt _bash_completions _baz _bison _bittorrent _bogofilter _bsd_pkg _bts _bug _bzip2 _cache_invalid _cal _call_function _cdcd _cdrecord _chflags _chkconfig _chmod _chown _combination _complete _complete_debug _complete_help _complete_tag _compress _configure _correct _correct_filename _correct_word _cpio _cvs _cvsup _cygcheck _cygpath _cygrunsrv _cygserver _cygstart _darcs _dd _deb_packages _debchange _debfoster _debsign _defaults _describe _description _dict _dict_words _diff _diff_options _dir_list _directories _dispatch _domains _dpkg _dpkg_source _dput _du _dumper _dupload _dvi _ecasound _elinks _elm _email_addresses _enscript _expand _expand_alias _expand_word _fakeroot _fetchmail _figlet _file_systems _files _find _finger _fink _flex _floppy _fsh _gcc _gdb _generic _getclip _getconf _getent _getfacl _global _global_tags _gnu_generic _gpg _gphoto2 _gprof _grep _groups _gs _guard _gzip _hdiutil _history _history_complete_word _hosts _iconv _ifconfig _ignored _imagemagick _init_d _iptables _irssi _ispell _java _java_class _joe _killall _kld _last _less _links _lintian _list _loadkeys _locales _logical_volumes _look _losetup _lp _ls _lscfg _lsdev _lslv _lsof _lspv _lsvg _lynx _lzop _mac_applications _mac_files_for_application _mail _mailboxes _main_complete _make _make-kpkg _man _match _mencal _menu _message _mh _mime_types _mkshortcut _mkzsh _modutils _mondo _most_recent_file _mount _mpc _mt _mtools _mtr _multi_parts _mutt _my_accounts _mysql_utils _mysqldiff _ncftp _net_interfaces _netcat _newsgroups _next_label _next_tags _nice _nmap _normal _nothing _nslookup _object_classes _oldlist _open _other_accounts _pack _patch _path_files _pbm _physical_volumes _pick_variant _pkgtool _pkgtools _prefix _pscp _putclip _read_comp _regex_arguments _requested _retrieve_cache _retrieve_mac_apps _rpm _sep_parts _service _set_command _setup _smit _store_cache _sub_commands _tags _uml _update-alternatives _update-rc.d _urpmi _valgrind _values _volume_groups _wajig _wanted
+/home/johann/.zcompdump:515> autoload -Uz +X _call_program
+/home/johann/.zcompdump:517> typeset -gUa _comp_assocs
+/home/johann/.zcompdump:518> _comp_assocs=( )
+compinit:450> _i_done=yes
+compinit:457> [[ -z yes ]]
+compinit:494> _i_line=complete-word
+compinit:497> zle -C complete-word .complete-word _main_complete
+compinit:494> _i_line=delete-char-or-list
+compinit:497> zle -C delete-char-or-list .delete-char-or-list _main_complete
+compinit:494> _i_line=expand-or-complete
+compinit:497> zle -C expand-or-complete .expand-or-complete _main_complete
+compinit:494> _i_line=expand-or-complete-prefix
+compinit:497> zle -C expand-or-complete-prefix .expand-or-complete-prefix _main_complete
+compinit:494> _i_line=list-choices
+compinit:497> zle -C list-choices .list-choices _main_complete
+compinit:494> _i_line=menu-complete
+compinit:497> zle -C menu-complete .menu-complete _main_complete
+compinit:494> _i_line=menu-expand-or-complete
+compinit:497> zle -C menu-expand-or-complete .menu-expand-or-complete _main_complete
+compinit:494> _i_line=reverse-menu-complete
+compinit:497> zle -C reverse-menu-complete .reverse-menu-complete _main_complete
+compinit:499> zle -la menu-select
+compinit:503> read -A _i_line
+compinit:503> bindkey '^i'
+compinit:504> [[ expand-or-complete == expand-or-complete ]]
+compinit:505> zstyle -a :completion: completer _i_line
+compinit:510> unfunction compinit compaudit
+compinit:511> autoload -Uz compinit compaudit
+compinit:513> return 0
+/etc/zshrc:30> zstyle ':completion:*' completer _complete _prefix
+/etc/zshrc:31> zstyle ':completion::prefix-1:*' completer _complete
+/etc/zshrc:32> zstyle ':completion:incremental:*' completer _complete _correct
+/etc/zshrc:33> zstyle ':completion:predict:*' completer _complete
+/etc/zshrc:34> zstyle ':completion::complete:*' use-cache 1
+/etc/zshrc:35> zstyle ':completion::complete:*' cache-path /home/johann/.zsh/cache/ninja.terrabionic.com
+/etc/zshrc:36> zstyle ':completion:*' expand yes
+/etc/zshrc:37> zstyle ':completion:*' squeeze-slashes yes
+/etc/zshrc:38> zstyle ':completion::complete:*' '\'
+/etc/zshrc:39> zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)'
+/etc/zshrc:40> zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
+/etc/zshrc:41> zstyle ':completion:*:matches' group yes
+/etc/zshrc:42> zstyle ':completion:*:descriptions' format '%B---- %d%b'
+/etc/zshrc:43> zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
+/etc/zshrc:44> zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
+/etc/zshrc:45> zstyle ':completion:*:options' description yes
+/etc/zshrc:46> zstyle ':completion:*:options' auto-description %d
+/etc/zshrc:47> zstyle ':completion:*:history-words' stop verbose
+/etc/zshrc:48> zstyle ':completion:*:history-words' remove-all-dups yes
+/etc/zshrc:49> zstyle ':completion:*:history-words' list false
+/etc/zshrc:50> zstyle ':completion:*:default' list-colors
+/etc/zshrc:52> PROMPT='%{%}(%{%}%n%{%}@%{%}%m%{%})%{%}%{%}(%{%}%D{%H:%M}%{%}:%{%}%D{%m/%d/%y}%{%})%{%}%{
%}%{%}(%{%}%#%{%}:%{%}%~%{%})%{%} '
+/etc/zshrc:54> [[+/etc/zshrc:1> whoami
+/etc/zshrc:54> [[ johann == root ]]

Pressing tab after this, makes it all flush down my screen
all over again. Or something similar to it ...

Something is wrong, isn't it?

--

Fafa Hafiz Krantz
  Research Designer @ http://www.home.no/barbershop
  Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf



-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Help help, prompt problems here!
@ 2005-05-09 16:27 Fafa Hafiz Krantz
  0 siblings, 0 replies; 6+ messages in thread
From: Fafa Hafiz Krantz @ 2005-05-09 16:27 UTC (permalink / raw)
  To: Bart Schaefer, zsh-users; +Cc: Peter Stephenson


Hello!

Thank you, Bart and Peter, for all your worthy input!
I've come up with this prompt, and it's working just fine.

But how can I turn it:

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%} '

Into split lines like these, just to make it look prettier?

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%} '

That one returns this error:
/etc/zshrc:35: command not found: %{^[[22;34m%}%m%{^[[01;34m%})%{^[[01;34m%}%{^[[01;34m%}(

> Returning to the original problem -- it seems likely that either (a)
> there's something in /etc/zshenv that you're not telling us about, and
> that something is stuck, possibly waiting for input, until you hit the
> ctrl+c, or (b) `whoam` itself is stuck for some reason, and when you
> hit ctrl+c it fails, so the "if" fails, so "prompt elite2 red" is not
> executed.

Yeah, back to the original problem. I still have it.
I don't have an zshenv, just zshrc and a zlogout containing 'clear'.

> You could find out which of these things is happening by placing a
> "set -x" at the top of /etc/zshenv, or by running "zsh -x".

I'll try that, thanks!

--

Fafa Hafiz Krantz
  Research Designer @ http://www.home.no/barbershop
  Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf



-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-10  2:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-08 19:37 Help help, prompt problems here! Fafa Hafiz Krantz
2005-05-09  2:35 ` Bart Schaefer
2005-05-09  9:39   ` Peter Stephenson
2005-05-09 16:27 Fafa Hafiz Krantz
2005-05-09 16:59 Fafa Hafiz Krantz
2005-05-10  2:55 ` Bart Schaefer

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).