Skip to content
Browse files

Merge branch 'master' of github.com:tkaemming/dotfiles

Conflicts:
	src/.zshrc
  • Loading branch information...
2 parents d696ead + a392282 commit 28f52adb54991055be411aefedfe187488255be8 @tkaemming committed Mar 22, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/.zshrc
View
7 src/.zshrc
@@ -23,7 +23,12 @@ mkcd () { mkdir -p $1 && cd $1 }
alias rmswap="find . -name .\*.sw\? -delete"
alias mostused="cat ${HISTFILE} | colrm 1 15 | sort | uniq -c | sort"
git-archive-branch () { git branch -m {,archive/}$1 }
-editpkg () { $EDITOR $(whichpkg $@) }
+editpkg () {
+ pkg=$(whichpkg $@)
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && $EDITOR $pkg
+ return $RETVAL
+}
pyversion () { python -c "import pkg_resources; print pkg_resources.get_distribution('$1').version" }
alias pyclean='find . -name \*.pyc -delete'

0 comments on commit 28f52ad

Please sign in to comment.
Something went wrong with that request. Please try again.