My .zshrc file
I have started recreating my .bashrc file for usage with ZSH. So for your referencing enjoyment I present my wholly-copied-from-other-sources .zshrc file!
My command prompt looks like this..
jrobbins@myServer[/etc/init.d] [10:15]:cat ~/.zshrc
#Color table from: http://www.understudy.net/custom.html fg_black=$'\e[0;30m' fg_red=$'\e[0;31m' fg_green=$'\e[0;32m' fg_brown=$'\e[0;33m' fg_blue=$'\e[0;34m' fg_purple=$'\e[0;35m' fg_cyan=$'\e[0;36m' fg_lgray=$'\e[0;37m' fg_dgray=$'\e[1;30m' fg_lred=$'\e[1;31m' fg_lgreen=$'\e[1;32m' fg_yellow=$'\e[1;33m' fg_lblue=$'\e[1;34m' fg_pink=$'\e[1;35m' fg_lcyan=$'\e[1;36m' fg_white=$'\e[1;37m' #Text Background Colors bg_red=$'\e[0;41m' bg_green=$'\e[0;42m' bg_brown=$'\e[0;43m' bg_blue=$'\e[0;44m' bg_purple=$'\e[0;45m' bg_cyan=$'\e[0;46m' bg_gray=$'\e[0;47m' #Attributes at_normal=$'\e[0m' at_bold=$'\e[1m' at_italics=$'\e[3m' at_underl=$'\e[4m' at_boldoff=$'\e[22m' at_italicsoff=$'\e[23m' at_underloff=$'\e[24m' PROMPT=" ${fg_lgreen}%n@${at_underl}%m${at_underloff}${fg_white}[${fg_cyan}%~${fg_white}] [${fg_green}%T${fg_white}]:${at_normal}" #Set the auto completion on autoload -U compinit compinit #Lets set some options setopt correctall setopt autocd setopt auto_resume ## Enables the extgended globbing features setopt extendedglob #Set some ZSH styles zstyle ':completion:*:descriptions' format '%U%B%d%b%u' zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' HISTFILE=~/.zsh-histfile HISTSIZE=1000 SAVEHIST=1000 #Aliases ##ls, the common ones I use a lot shortened for rapid fire usage alias ls='ls --color' #I like color alias l='ls -lFh' #size,show type,human readable alias la='ls -lAFh' #long list,show almost all,show type,human readable alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable alias lt='ls -ltFh' #long list,sorted by date,show type,human readable ##cd, because typing the backslash is ALOT of work!! alias .='cd ../' alias ..='cd ../../' alias ...='cd ../../../' alias ....='cd ../../../../' # SSH aliases - short cuts to ssh to a host alias -g shost='ssh -p 9999 user@host.com' # Screen aliases - add a new screen , or entire session, name it, then ssh to the host alias sshost='screen -t HOST shost'


#1 by Brie on April 21st, 2010 - 4:48 am
I’m always cruising for new prompts. I love this one. I’ve added a few more aliases (like alias p=’ping’).
–
Brie
#2 by jeffro on April 21st, 2010 - 9:38 am
@ Brie
I am glad you liked it! I added a few new aliases at the bottom. I use screen A LOT any more. The screen aliases have come to be very helpful..
#3 by Brie on April 23rd, 2010 - 2:33 pm
Yeah, screen is one of those things I flat out *need* to just do. Everyone raves about it but I haven’t gotten around to it. I will soon.
!
Anyway, I’m adding you to my RSS reader and looking forward to reading more, Jeff!
!
–
Brie