diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-08-11 10:47:00 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-08-11 10:47:00 -0500 |
commit | 81839b9079ffa5629e69d5362b5aea21b77cb868 (patch) | |
tree | b47c1ca0535c1c3f751c25764c2018d22156843c /git/.local | |
parent | 0e3004446824a4c923b5c494ff331dad2dc455d3 (diff) |
feat(nvim): impove workflow in rust and lua
Diffstat (limited to 'git/.local')
-rw-r--r-- | git/.local/bin/git-ignore | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/git/.local/bin/git-ignore b/git/.local/bin/git-ignore new file mode 100644 index 0000000..7df638d --- /dev/null +++ b/git/.local/bin/git-ignore @@ -0,0 +1,20 @@ +#!/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 |