This is a zsh initialization file (e.g. /etc/zshrc or ~/.zshrc) which activates a lot of zsh features
Latest commit 6a92981 Dec 4, 2016 @vaeth some noglob love
Failed to load latest commit information.
README Use set_prompt more securely. Requires set_prompt v3.0.0 or newer Oct 31, 2016
zshrc some noglob love Dec 4, 2016


(C) Martin Väth <>
You can copy the zshrc file completely or partly, as you need.
Comments are welcome.

zshrc is a zsh initialization file (e.g. to be used as /etc/zshrc or ~/.zshrc)
which activates a lot of zsh interactive features. In particular, all of

zsh-internal help system  (must be v3.0.0 or newer)

are initialized if available.
(For auto-fu.zsh use at least version [only in git, branch pu].)

For gentoo, ebuilds for this and all above packages can be found
in the mv overlay (available via layman).

Concerning the colors which zshrc sets, only the following cases are tested
(and probably things will look ugly in other cases):
1. You use a terminal with a black background (and the 256 colors are mainly
   tested with xterm - with other terminals e.g. the highlighted colors
   may look differently and maybe bad). My testing xresources for xterm contain:
	XTerm*cursorColor: green
	XTerm*background:  black
	XTerm*foreground:  white
2. The terminal is specially configured to use
   Ethan Schoonover's solarized colorscheme.
   Both, light and dark schemes of solarized are tested.
   You have to tell zshrc that you want solarized by setting
   SOLARIZED=true (or "light" or "dark").

Note that the provided zshrc file cares only about zsh specific features,
not about "standard" variables, aliases, or functions which you would
normally set in .profile, .bash_profile, or .bashrc:

In particular, PATH etc. are expected to be complete when zshrc is sourced.

Optionally, zshrc can source a separate file in which you can set things
like PATH, CDPATH, aliases, or functions for interactive usage in bash syntax.
(You might want to source that separate file also from .bash_profile
or .bashrc in an interactive bash.)
If you want to make use of that feature, you must have set
when sourcing zshrc (or set it in the beginning of zshrc).

In order to make it easier to you to modify details set in zshrc,
you can define a function "after_zshrc": If this function is defined,
it is called at the very end of zshrc (passing the arguments of the shell),
so you can undo/extend any change done in zshrc if you wish to.

Also some other paths are configurable if you have set
	(The arrays can also be single strings)
when you source zshrc. More precisely, if DEFAULTS, GITS, or EPREFIX are
defined, then the following files are taken from this location if they exist:

	This and all its subdirectories can contain local zsh completion files

	This substitutes /usr/share/zsh/$ZSH_VERSION/help or
	The content should be generated with the Util/helpfiles script
	as described in the zsh manpage.

	If dircolors-mv (from termcolors-mv.git) is in $path, then
	zshrc uses dircolors-mv: This selects the appropriate color
	scheme by taking the environment variable $TERM and $SOLARIZED
	into account (and zshrc-mv exports an appropriate DEFAULTS for
	dircolors-mv, trying first $DEFAULTS/... and then $GITS/...).
	Download e.g. with
	git clone
	or (as a gentoo user) install from the mv overlay.
	If dircolors-mv is not in $PATH, zshrc uses as a fallback the first
	existing of $DEFAULTS/DIR_COLORS, ~/.dircolors, or /etc/DIRCOLORS
	(ignoring the values of $SOLARIZED and $TERM in this case).

	This substitutes the corresponding file in /usr/share/zsh/site-contrib
	Fallback is to use $PATH. Download e.g. with
	git clone
	or (as a gentoo user) install from the mv overlay.

	This substitutes the corresponding file in /usr/share/zsh/site-contrib
	if available. Fallback is to use PATH. Download e.g. with
	git clone
	or (as a gentoo user) install from the mv overlay.

The variables DEFAULTS, GIT, and EPREFIX are not honoured for support for
runtitle and set_prompt (earlier versions of zshrc-mv had some mixture here).
To get support for these (which is recommended) download them with
	git clone
	git clone
or (as a gentoo user) install them from the mv overlay
and make sure to have the corresponding directories in your $PATH