zsh: start wrapping hd up
author |
Steve Losh <steve@stevelosh.com> |
date |
Thu, 07 Apr 2011 10:22:20 -0400 |
parents |
ca5f87ce7083
|
children |
c3129613e34a
|
branches/tags |
(none) |
files |
.zshrc zsh/misc.zsh |
Changes
--- a/.zshrc Wed Apr 06 13:50:33 2011 -0400
+++ b/.zshrc Thu Apr 07 10:22:20 2011 -0400
@@ -3,8 +3,12 @@
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 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"
--- a/zsh/misc.zsh Wed Apr 06 13:50:33 2011 -0400
+++ b/zsh/misc.zsh Thu Apr 07 10:22:20 2011 -0400
@@ -62,7 +62,7 @@
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() {