Permalink
Browse files

zsh: start wrapping hd up

  • Loading branch information...
sjl committed Apr 7, 2011
1 parent d5d78b8 commit 8b55f862c83628730a7a8df124b1460d72c3c8b4
Showing with 5 additions and 2 deletions.
  1. +4 −1 .zshrc
  2. +1 −1 zsh/misc.zsh
View
5 .zshrc
@@ -3,8 +3,12 @@ export ZSH_THEME="prose"
export DISABLE_AUTO_UPDATE="true"
export OH_MY_ZSH_DEBUG="true"
plugins=(command-coloring pip fabric)
+
+#test -f "$HOME/src/hgd/hd" && export OH_MY_ZSH_HG="$HOME/src/hgd/hd" || export OH_MY_ZSH_HG='hg'
+
source $ZSH/oh-my-zsh.sh
+
# Custom options -------------------------------------------------------------
unsetopt promptcr
@@ -29,7 +33,6 @@ export HISTCONTROL=erasedups
export COMMAND_MODE=unix2003
export RUBYOPT=rubygems
export CLASSPATH="$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar"
-which vimpager >/dev/null 2>&1 && export PAGER=vimpager || export PAGER=less
# Python variables -----------------------------------------------------------
export PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
View
@@ -62,7 +62,7 @@ export PYTHONPATH="/opt/subversion/lib/svn-python:$PYTHONPATH"
export PATH="/opt/subversion/bin:$PATH"
# hgd
-alias h='~/src/hgd/hd'
+test -f "$HOME/src/hgd/hd" && alias h='~/src/hgd/hd' || alias h=hg
# What the hell did I do the other day?
function whatthehelldididoon() {

0 comments on commit 8b55f86

Please sign in to comment.