Skip to content

Instantly share code, notes, and snippets.

@anantpatil
Created March 20, 2013 06:19
Show Gist options
  • Save anantpatil/5202702 to your computer and use it in GitHub Desktop.
Save anantpatil/5202702 to your computer and use it in GitHub Desktop.
.zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/patilana/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Environment variables specific to me
export WORK=/home/patilana/karma
export WORK_IRA=$WORK/dev/isvn/qa/hpsw-nmc-qaprobe
export WORK_PRIVATE=$WORK/private
export WORK_QA=/home/patilana/karma/dev/sahara/isvn/hpsw-nmc-qaspi
# put %m for host name
export PS1="$> "
# enable color support
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
set -o noclobber
# This is required so that you can specify wild cards to command line
# and zsh uses its powerfull glob feature
# setopt extended_glob
# setopt SH_GLOB
setopt GLOB_SUBST
# load .Xresources and .Xdefaults
# I have merged the contents of .Xdefaults into .Xresources
if [ -f ~/.Xresources ];
then
xrdb -load ~/.Xresources
fi
# Define a xtitle function so that you can change the title of xterm
# compatible windows
xtitle() { echo -ne "\033]0;${*}\a"; }
# alias gvim='gvim -geom 120x48+96+96'
# list directories; last / is the trick
alias lsd="ls -d */"
# list ONLY files in current directory
alias lsf="find . -maxdepth 1 -type f -print"
# For listing modified/added/conflicted files in svn local repo
alias svnlsm="svn st | grep -v ^\?"
alias svnlsnew="svn st | grep ^\?"
# Shut-up the noisy maven.
alias mvn="mvn -q"
# Following is included to run nbr2mp4 command which converts WRF (WebEX
# recordings) to mp4 files.
export PATH=$PATH:/opt/webex-player/nbr2_mp4/
# autoload command in vi editor for editing
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment