1
0
Fork 0
mirror of synced 2024-06-25 18:01:09 -04:00
zimfw/modules/git/functions/git-ignore-add

7 lines
194 B
Plaintext
Raw Normal View History

# vim:et sts=2 sw=2 ft=zsh
local git_root
git_root=$(git-root) || return 1
2015-12-15 00:12:17 -05:00
# we are in a git repository. add parameters to .gitignore
for file (${@}) print ${file} >>! "${git_root}/.gitignore"