This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
FOLDER="$HOME/.local/bin"
|
|
FILE="$FOLDER/$1"
|
|
|
|
if [ -f "$FILE" ]; then
|
|
printf "Ya existe. ENTER para editarlo o CTRL+C para cancelar"
|
|
read -r
|
|
$EDITOR "$FILE"
|
|
else
|
|
printf "#!/bin/sh\\n\\n" > "$FILE"
|
|
chmod +x "$FILE"
|
|
$EDITOR "$FILE"
|
|
fi
|