#!/bin/sh

coded_by='

In the name of Allah, the most Gracious, the most Merciful.

 ▓▓▓▓▓▓▓▓▓▓
░▓ Author ▓ Abdullah <https://abdullah.today>
░▓▓▓▓▓▓▓▓▓▓
░░░░░░░░░░

░█▀█░█░█░▀█▀░█▀█░█▀▀░█▀▀░█▀▄░▀█▀░█▀█░▀█▀
░█▀█░█░█░░█░░█░█░▀▀█░█░░░█▀▄░░█░░█▀▀░░█░
░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░░░░▀░
'


scripts_dir="$HOME/.local/bin"
script_file="$scripts_dir/$1"


if [ -f $script_file ]; then
	vim $script_file
else
	echo "#!/bin/sh \
    $($HOME/.local/bin/author $(basename $script_file))" > $script_file
	chmod +x $script_file
	vim $script_file
fi
