diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-28 15:27:15 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-28 15:27:15 -0500 |
commit | dd6cfb63ad85d0164cbe4ac04f7aea9f6a842f02 (patch) | |
tree | 5bc45394b9192771bcc85fa59b8aab4b8a4301bb /git/.local/bin | |
parent | 1527172edf1f7d65095a5c2268947c16ed905d18 (diff) |
feat!: remove unused configs and cleanup paths
Diffstat (limited to 'git/.local/bin')
-rwxr-xr-x | git/.local/bin/git-bump | 27 | ||||
-rw-r--r-- | git/.local/bin/git-ignore | 20 |
2 files changed, 0 insertions, 47 deletions
diff --git a/git/.local/bin/git-bump b/git/.local/bin/git-bump deleted file mode 100755 index d75a755..0000000 --- a/git/.local/bin/git-bump +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -tag="$(git describe --abbrev=0 2>/dev/null)" -IFS=. read -r major minor patch <<EOF -${tag#v} -EOF - -case "$1" in -major) - major=$((major + 1)) - minor=0 - patch=0 - ;; -minor) - minor=$((minor + 1)) - patch=0 - ;; -patch) - patch=$((patch + 1)) - ;; -*) - echo "Invalid semver argument given (major|minor|patch): $1" 1>&2 - exit 1 - ;; -esac - -git shortlog "$tag"..HEAD | git tag -s "v${major}.${minor}.${patch}" --file - diff --git a/git/.local/bin/git-ignore b/git/.local/bin/git-ignore deleted file mode 100644 index 7df638d..0000000 --- a/git/.local/bin/git-ignore +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -# Create useful gitignore files -# Usage: gi [param] -# param is a comma separated list of ignore profiles. -# If param is ommited choose interactively. - -__gi() { - curl -L -s https://www.gitignore.io/api/"$*" -} - -if [ "$#" -eq 0 ]; then - IFS=$IFS+"," - for item in $(__gi list); do - echo "$item" - done | fzf --multi --ansi | paste -s -d "," - | - { read -r result && __gi "$result"; } -else - __gi "$@" -fi |