nf 242 B

12345678910
  1. #!/bin/sh
  2. # TeX template for a tikz flowchart
  3. # exit if no argument given
  4. [ -z "$*" ] && echo "Error: Usage: nf [filename]" && exit
  5. cp ~/.config/setup/templates/latex/flowchart.tex .
  6. mv flowchart.tex "${1%.*}.tex"
  7. vim -c :1 "${1%.*}.tex"