summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-11-03 18:55:32 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-11-03 18:55:32 -0500
commit46a49ab7bd980a85c4fd772b74639a87fc153b0c (patch)
tree701206612429cc2f1dd03501332fc2d82df97bc9
parent0146107851a7f6a05b1a2146e275b631edf20338 (diff)
downloaddotconfig-46a49ab7bd980a85c4fd772b74639a87fc153b0c.tar.xz
dotconfig-46a49ab7bd980a85c4fd772b74639a87fc153b0c.zip
changes for easier git usage
-rwxr-xr-xzsh/zscripts/aliasrc.zsh1
-rw-r--r--zsh/zscripts/nicegit.zsh17
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"
+}