Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I admire his CLI approach to things, but this just seems dogmatic:

    echo -e "\noutput\n.psc*\n.purs*\.spago" >> .gitignore
Sure, ok, saying "add these entries to your .gitignore" is too pedestrian?


At least I'd prefer a simple here-doc:

  tee -a .gitignore <<'EOF'
  output
  .psc*
  .purs*
  .spago
  EOF
(or use:

  cat <<'EOF' >> .gitignore
  output
  .psc*
  .purs*
  .spago
  EOF
But I think the tee-version more readily emphasize what's going on, and works with sudo).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: