Skip to content

Files

Latest commit

e5532a1 · Jan 14, 2015

History

History
This branch is 277 commits behind thoughtbot/guides:main.

shell

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 14, 2015

Shell

  • Break long lines on |, &&, or || and indent the continuations.
  • Don't add an extension to executable shell scripts.
  • Don't put a line break before then or do, use if ...; then and while ...; do.
  • Use for x; do, not for x in "$@"; do.
  • Use snake_case for variable names and ALLCAPS for environment variables.
  • Use single quotes for strings that don't contain escapes or variables.
  • Use two-space indentation.