Added a few git functions and fixed fpath not being set in the appropriate spot

This commit is contained in:
2023-10-09 09:22:08 -04:00
parent c1b1381f24
commit d3a383102b
6 changed files with 35 additions and 14 deletions

8
zsh/config/functions/gl Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/zsh
# Prettier git log
function gl() {
git log --graph \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit
}

11
zsh/config/functions/gma Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/zsh
# Add all and commit to git.
function gma() {
[ -z "$1" ] \
&& echo "usage: gma <commit-message>" \
&& return 1
git add . && git commit -m "$1"
}