Skip to content

Instantly share code, notes, and snippets.

@BrianMehrman
Created October 9, 2015 18:42
Show Gist options
  • Save BrianMehrman/f577976397f1c9e17825 to your computer and use it in GitHub Desktop.
Save BrianMehrman/f577976397f1c9e17825 to your computer and use it in GitHub Desktop.
zsh fun
# ------------------------------------
# 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