Created
October 9, 2015 18:42
-
-
Save BrianMehrman/f577976397f1c9e17825 to your computer and use it in GitHub Desktop.
zsh fun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------ | |
# Open Browser to URL | |
# ------------------------------------ | |
unset gd | |
gdCall(){ | |
unalias gd | |
open "http://bringvictory.com/" | |
if [[ "$#" -ge 1 ]]; then | |
echo "wat" | |
git diff "$*"; | |
else | |
git diff | |
fi | |
alias gd="gdCall" | |
} | |
alias gd="gdCall" | |
a () { | |
if [[ "$#" -gt 0 ]]; then | |
echo "workd" | |
else | |
echo "not workd" | |
fi | |
} | |
# ----------------------------------- | |
# Override Git to say stuff | |
# ----------------------------------- | |
unalias gst | |
unalias g | |
gstCall () { | |
unalias gst | |
git status | |
alias gst="gstCall" | |
say -v 'Zarvox' "by your command" | |
} | |
gCall () { | |
say -v 'Ralph' "power overwhelming" | |
unalias g | |
if [[ "$#" -gt 0 ]]; then | |
git "$*" | |
else | |
git | |
fi | |
alias g="gCall" | |
} | |
alias g="gCall" | |
alias gst="gstCall" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment