git-ignore-add 194 B

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