#!/bin/bash
set -e

cd "$(dirname $0)"

mkdir -p /usr/local/bin

cat >/usr/local/bin/luan_editor <<End
#!/bin/bash

"$(pwd)/luan_editor.sh" "\$@"
End

chmod +x /usr/local/bin/luan_editor

echo "The command 'luan_editor' has been installed"
