Permalink
Browse files

add `pyversion`

  • Loading branch information...
1 parent 8a8cd97 commit d696ead75f46f2666863fd8672c9e4d900f2a283 @tkaemming committed Mar 22, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/.zshrc
View
1 src/.zshrc
@@ -24,6 +24,7 @@ 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 $@) }
+pyversion () { python -c "import pkg_resources; print pkg_resources.get_distribution('$1').version" }
alias pyclean='find . -name \*.pyc -delete'
alias pyf='find . -name \*.py -not -path \*migrations/\* -not -path \*vendor/\* -not -path \*settings/\* | xargs pyflakes'

0 comments on commit d696ead

Please sign in to comment.