diff options
-rwxr-xr-x | zsh/zscripts/aliasrc.zsh | 1 | ||||
-rw-r--r-- | zsh/zscripts/nicegit.zsh | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/zsh/zscripts/aliasrc.zsh b/zsh/zscripts/aliasrc.zsh index 8d2f86b..842d634 100755 --- a/zsh/zscripts/aliasrc.zsh +++ b/zsh/zscripts/aliasrc.zsh @@ -68,3 +68,4 @@ alias \ alias \ \$="" \ \#="${SUDO-sudo}" \ + diff --git a/zsh/zscripts/nicegit.zsh b/zsh/zscripts/nicegit.zsh new file mode 100644 index 0000000..5aab8e0 --- /dev/null +++ b/zsh/zscripts/nicegit.zsh @@ -0,0 +1,17 @@ +#!/usr/bin/env zsh + +alias \ + ga="git add" \ + gpl="git pull" \ + gps="git push" \ + gl="git log" \ + + +function gc() { + if [[ "$@" != "" ]]; then + commit="$@" + else + echo "Enter commit message:" && read commit + fi + git commit -m "$commit" +} |