aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gitconfig
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-09-29 18:15:35 -0500
committerToby Vincent <tobyv13@gmail.com>2021-09-29 18:15:35 -0500
commit175cc7d56c31142a406a7e0f38c03c9bb7e2bd7a (patch)
treeeea13600426e84d834024f814fbe7b22b99af6ae /gitconfig
parent27a7695d717bb90e496002aa4b746a5abd5bd5ad (diff)
fix: removed usused or outdated entries
Diffstat (limited to 'gitconfig')
-rw-r--r--gitconfig9
1 files changed, 1 insertions, 8 deletions
diff --git a/gitconfig b/gitconfig
index 6f97b46..b06c349 100644
--- a/gitconfig
+++ b/gitconfig
@@ -16,10 +16,6 @@
[fetch]
prune = true
-[url "git@github.com:"]
- insteadOf = gh:
- pushInsteadOf = "https://github.com/"
-
[core]
editor = code --wait
@@ -70,7 +66,4 @@
# generate git artifacts
ignore = "!f() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; f"
attributes = "!f() { curl -sL https://gist.githubusercontent.com/tobyvin/70f3671c76016063594ea45edbb97094/raw ;}; f"
- license = "!f() { curl -sH 'Accept: application/vnd.github.v3+json' https://api.github.com/licenses/$1 | grep -oP '.*\"body\":\\s*\"\\K.*(?=\\s*\",)' | tr '\\n' '\\0' | xargs -0 printf '%b\\n' | sed \"s/\\[year\\]/$(date +'%Y')/\" | sed \"s/\\[fullname\\]/$(git config --get user.name)/\"; }; f"
-
- # create and keep an empty directory at the provided path
- keep = "!f() { ([ -f $@/.gitkeep ] || (mkdir -p $@ && curl -sL https://api.ef.gy/fortune > $@/.gitkeep)) && (grep -qsxF '!/**/.gitkeep' .gitignore || echo '!/**/.gitkeep' >> .gitignore) ;}; f"
+ license = "!f() { curl -sH 'Accept: application/vnd.github.v3+json' https://api.github.com/licenses/$1 | grep -oP '.*\"body\":\\s*\"\\K.*(?=\\s*\",)' | tr '\\n' '\\0' | xargs -0 printf '%b\\n' | sed \"s/\\[year\\]/$(date +'%Y')/\" | sed \"s/\\[fullname\\]/$(git config --get user.name)/\"; }; f" \ No newline at end of file