citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

make-script (205B)


      1 #!/usr/bin/env bash
      2 set -e
      3 name=$1
      4 if [ -z "$name" ]; then
      5 	printf 'make ~/bin/'
      6 	read name
      7 fi
      8 
      9 if [ -z "$name" ]; then
     10 	exit 1
     11 fi
     12 
     13 $EDITOR ~/bin/$name
     14 if [ -f ~/bin/$name ]; then
     15 	chmod +x ~/bin/$name
     16 fi