diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:46:39 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:46:39 -0500 |
commit | 78d5e2082554d370f43216406f84872eaa2a4e5b (patch) | |
tree | fc354e842111062c057484cbb319e02037404975 /zsh/zscripts/nicegit.zsh | |
parent | 75793a911de3648963385c70237fc737f1967e9d (diff) | |
download | dotconfig-78d5e2082554d370f43216406f84872eaa2a4e5b.tar.xz dotconfig-78d5e2082554d370f43216406f84872eaa2a4e5b.zip |
remove zsh and nvim configs from this repo and move to another
Diffstat (limited to 'zsh/zscripts/nicegit.zsh')
-rwxr-xr-x | zsh/zscripts/nicegit.zsh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/zsh/zscripts/nicegit.zsh b/zsh/zscripts/nicegit.zsh deleted file mode 100755 index 276d98e..0000000 --- a/zsh/zscripts/nicegit.zsh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env zsh - -alias \ - ga="git add" \ - gpl="git pull" \ - gph="git push" \ - gl="git log" \ - gldaily='git log --pretty="format:- %s" --after="00:00" --before="24:00"' \ - - -function gc() { - if ! __is_diff; then - echo "Nothing to commit, working tree clean" - return - fi - - if [[ "$@" != "" ]]; then - commit="$@" - else - echo "Enter commit message:" && read commit - fi - git commit -m "$commit" -} - -function __is_diff() { - ! git diff --quiet HEAD $REF -- $DIR -} - -function gdf() { - __is_diff && git diff HEAD $RED -- $DIR || echo "Repo is unchanged" -} |