# Encoding: UTF-8

[{content: 
   "#!/usr/bin/env ${1:${TM_SCOPE/(?:source|.*)\\.(?:(shell)|(\\w+)).*/(?1:bash:$2)/}}\n",
  name: "#!/usr/bin/env",
  scope: "",
  tabTrigger: "!env",
  uuid: "7C0F8C08-8860-4DBB-AB24-652B53E63E13"},
 {content: "<<-${2:'${1:TOKEN}'}\n\t$0\n${1/['\"`](.+)['\"`]/$1/}",
  name: "Here Document",
  scope: "source.shell",
  tabTrigger: "here",
  uuid: "ED7D1DEB-B124-4428-9C87-D1D9F360D78C"},
 {content: 
   "${1:TMPFILE}=\"$(mktemp -t ${2:`echo \"${TM_FILENAME%.*}\" | sed -e 's/[^a-zA-Z]/_/g' -e 's/^$/untitled/'`})\"\n${3:${4/(.+)/trap \"/}${4:rm -f '\\$${1/.*\\s//}'}${4/(.+)/\" 0               # EXIT\n/}${5/(.+)/trap \"/}${5:rm -f '\\$${1/.*\\s//}'; exit 1}${5/(.+)/\" 2       # INT\n/}${6/(.+)/trap \"/}${6:rm -f '\\$${1/.*\\s//}'; exit 1}${6/(.+)/\" 1 15    # HUP TERM\n/}}\n",
  name: "Tempfile",
  scope: "source.shell",
  tabTrigger: "temp",
  uuid: "23583387-4ACC-4A27-B6EC-58418A39EF30"},
 {content: "case ${1:word} in\n\t${2:pattern} )\n\t\t$0;;\nesac",
  name: "case … esac",
  scope: "source.shell",
  tabTrigger: "case",
  uuid: "CA3AC214-9EB9-4018-AA1C-D3FF71B1FC72"},
 {content: "elif ${2:[[ ${1:condition} ]]}; then\n\t${0:#statements}",
  name: "elif …",
  scope: "source.shell",
  tabTrigger: "elif",
  uuid: "A1E3D4D4-BFC6-11D9-BB97-000D93589AF6"},
 {content: "for (( i = 0; i < ${1:10}; i++ )); do\n\t${0:#statements}\ndone",
  name: "for … done",
  scope: "source.shell",
  tabTrigger: "for",
  uuid: "E7807C18-AA17-11D9-AB33-000D93589AF6"},
 {content: "for ${1:i}${2/.+/ in /}${2:words}; do\n\t${0:#statements}\ndone",
  name: "for … in … done",
  scope: "source.shell",
  tabTrigger: "forin",
  uuid: "04CBE1A5-313E-4E2C-946B-255C461B8406"},
 {content: "if ${2:[[ ${1:condition} ]]}; then\n\t${0:#statements}\nfi",
  name: "if … fi",
  scope: "source.shell",
  tabTrigger: "if",
  uuid: "B26A35EE-AA17-11D9-AB33-000D93589AF6"},
 {content: "until ${2:[[ ${1:condition} ]]}; do\n\t${0:#statements}\ndone",
  name: "until … done",
  scope: "source.shell",
  tabTrigger: "until",
  uuid: "BD23B11F-D940-43D3-A784-17F3D3FABC38"},
 {content: "while ${2:[[ ${1:condition} ]]}; do\n\t${0:#statements}\ndone",
  name: "while … done",
  scope: "source.shell",
  tabTrigger: "while",
  uuid: "2C961068-7683-4899-8569-DDA80ED33BC0"}]
