Merge pull request #277 from NemesisRE/patch-1

added support for git tags
diff --git a/aliases/available/git.aliases.bash b/aliases/available/git.aliases.bash
index d0dacbd..7e4e83e 100644
--- a/aliases/available/git.aliases.bash
+++ b/aliases/available/git.aliases.bash
@@ -36,6 +36,19 @@
 alias ggs="gg --stat"
 alias gsl="git shortlog -sn"
 alias gw="git whatchanged"
+alias gt="git tag"
+alias gta="git tag -a"
+alias gtd="git tag -d"
+alias gtl="git tag -l"
+
+case $OSTYPE in
+  darwin*)
+    alias gtls="git tag -l | gsort -V"
+    ;;
+  *)
+    alias gtls='git tag -l | sort -V'
+    ;;
+esac
 
 if [ -z "$EDITOR" ]; then
     case $OSTYPE in
diff --git a/plugins/available/python.plugin.bash b/plugins/available/python.plugin.bash
index c705d5b..5197078 100644
--- a/plugins/available/python.plugin.bash
+++ b/plugins/available/python.plugin.bash
@@ -8,3 +8,24 @@
   alias http='python -m SimpleHTTPServer'
 fi
 
+function pyedit() {
+    about 'opens python module in your EDITOR'
+    param '1: python module to open'
+    example '$ pyedit requests'
+    group 'python'
+
+    xpyc=`python -c "import sys; stdout = sys.stdout; sys.stdout = sys.stderr; import $1; stdout.write($1.__file__)"`
+
+    if [ "$xpyc" == "" ]; then
+        echo "Python module $1 not found"
+        return -1
+
+    elif [[ $xpyc == *__init__.py* ]]; then
+        xpydir=`dirname $xpyc`;
+        echo "$EDITOR $xpydir";
+        $EDITOR "$xpydir";
+    else
+        echo "$EDITOR ${xpyc%.*}.py";
+        $EDITOR "${xpyc%.*}.py";
+    fi
+}