mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
Added a few git functions and fixed fpath not being set in the appropriate spot
This commit is contained in:
8
zsh/config/functions/gl
Executable file
8
zsh/config/functions/gl
Executable 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
11
zsh/config/functions/gma
Executable 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"
|
||||
}
|
||||
Reference in New Issue
Block a user