Dotfiles, utilities, and other apparatus.
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.

14 lines
219 B

  1. #!/bin/sh
  2. if [ -z "$1" ]; then
  3. echo "addscript expects a script name"
  4. exit 1
  5. fi
  6. filename="$HOME/bin/$1"
  7. $EDITOR "$filename"
  8. if [ -e "$filename" ]; then
  9. chmod +x "$filename"
  10. echo "$filename now executable"
  11. fi