diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-10-13 14:11:34 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-10-13 14:11:34 -0500 |
commit | 2a9005b9bce7b721171d131de67e049aa9518729 (patch) | |
tree | d9c2989ecd270f877522ac44180f111920a77a06 /gitconfig | |
parent | 93517c76c78eab19ae6bba16838ce61c38dbf9c4 (diff) |
feat: wrote initalization script for new git repos
Diffstat (limited to 'gitconfig')
-rw-r--r-- | gitconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,6 +64,6 @@ smrm = "!f(){ git rm --cached \"$1\";rm -r \"$1\";git config -f .gitmodules --remove-section \"submodule.$1\";git config -f .git/config --remove-section \"submodule.$1\";git add .gitmodules; }; f" # generate git artifacts - ignore = "!f() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; f" + ignore = "!f() { IFS=\",\"; curl -L -s \"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"
\ No newline at end of file |