#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "addscript expects a script name"
|
|
exit 1
|
|
fi
|
|
|
|
filename="$HOME/bin/$1"
|
|
$EDITOR "$filename"
|
|
|
|
if [ -e "$filename" ]; then
|
|
chmod +x "$filename"
|
|
echo "$filename now executable"
|
|
fi
|