Index of /zsh
Name Last modified Size Description
Parent Directory 18-Jul-2016 08:44 -
mrxvtrc 11-Nov-1969 14:11 2k
bat-mon-v0.104.gz 13-Jul-2010 09:01 2k battery monitor
zsh-prompt-battery.png 23-Oct-2007 18:49 4k battery status
zsh-prompt-cd-color.png 01-Nov-2007 04:48 3k change PWD color
zsh-prompt-exit.png 23-Oct-2007 18:49 5k exit status screenshot
bat-mon-v0.104.asc 13-Jul-2010 09:01 1k hashes & gpg signature
screenrc.asc 31-Mar-2008 03:13 1k hashes & gpg signature
zshrc-v0.158.asc 23-Dec-2016 04:38 1k hashes & gpg signature
zsh-prompt-load.png 14-Nov-2007 09:12 25k load average screenshot
zsh-prompt-root.png 15-Nov-2007 06:37 8k root prompt
zsh-prompt-TZ.png 13-Dec-2007 06:32 10k time zones
zshrc-v0.158 23-Dec-2016 04:35 51k zshrc
screenrc 31-Mar-2008 03:13 1k ~/.screenrc
if you'd like to incorporate this madness into your command line, but
also want to keep your settings (e.g. TZ, LC_ALL, TERM, HISTFILE,
options) and any other personal settings, and you want to do little or
no editing when you update this config:
1) name this file something like "~/.atom-zshrc"
2) set up your own ~/.zshrc as desired
3) near the top of your ~/.zshrc add the line:
then this config will be sourced, but functions, environment variables,
options, etc can be set, unset or overridden to suit your needs. if you
have specific needs that are not addressed by this file, that will
probably be the easiest way to keep current with this and maintain your
the colors are optimized for green foreground on a black background, but
of course this can be edited.
screenrc and mrxvtrc files are provided.
zsh-prompt-TZ.png : displaying time zones using the name of the city. as
of v0.118 it will default to UTC if a nonsensical TZ is used, such as
zsh-prompt-battery.png : shows the color-coding of the battery status.
if the computer is running on battery power the display shows the
estimated time and percentage of charge remaining.
zsh-prompt-load.png : shows the color coding of the load averages. note
that this system is only AC powered, so there's no battery status. also
this system has 2 CPUs, so a load <2 is green; >4 is red; between 2-4 is
yellow. the zshrc file counts CPUs when it is started and uses this to
colorize the load averages.
zsh-prompt-exit.png : shows the exit status "1" after trying to `cat` a
non-existent file. the first invocation of `sleep 300` is killed with
"^C" and it shows that it was killed with an INT (interrupt) signal. the
second invocation is killed (from another shell) with a TERM signal. the
third invocation is killed (from another shell) with a KILL (-9) signal.
you get the idea: if the previous command died an unnatural death,
display the signal that killed it. in any case, display the return
status if it's not zero.
zsh-prompt-cd-color.png : when changing directories show the $PWD in a
brighter color. this supports 256 colors, if available. there are a few
easter-eggs built into this...
zsh-prompt-root.png : using the same zshrc file, i like to have the root
prompt obviously different, but not obtrusively so.
there's a lot going on in here and most of it doesn't even make good
screenshots. the files should have enough comments to follow along.
this works best with zsh 4.3.4. older versions that i've tested on
mostly work; on older versions of zsh some things may not work, some
things may even break.
if you spot a bug please let me know.
if you want to say thanks - http://amzn.com/w/164X0LDU2Z390