Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
244 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: script
  3. # key: script
  4. # --
  5. script "${1:do something}" do
  6. interpreter "bash"
  7. user "${2:root}"
  8. cwd "${3:/tmp}"
  9. creates "${4:maybe}"
  10. code <<-EOH
  11. STATUS=0
  12. $0 || STATUS=1
  13. exit $STATUS
  14. EOH
  15. end