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.
2020-05-27 02:31:42 +00:00
|
|
|
#!/bin/sh
|
2019-05-30 15:00:26 +00:00
|
|
|
|
2020-03-29 19:16:35 +00:00
|
|
|
FOLDER="$HOME/.local/bin"
|
2018-02-03 20:11:09 +00:00
|
|
|
FILE="$FOLDER/$1"
|
|
|
|
|
2020-05-27 02:31:42 +00:00
|
|
|
if [ -f "$FILE" ]; then
|
2020-06-18 01:38:39 +00:00
|
|
|
printf "Ya existe. ENTER para editarlo o CTRL+C para cancelar"
|
2020-05-27 02:31:42 +00:00
|
|
|
read -r
|
|
|
|
$EDITOR "$FILE"
|
2018-02-03 20:11:09 +00:00
|
|
|
else
|
2020-05-27 02:31:42 +00:00
|
|
|
printf "#!/bin/sh\\n\\n" > "$FILE"
|
|
|
|
chmod +x "$FILE"
|
|
|
|
$EDITOR "$FILE"
|
2018-02-03 20:11:09 +00:00
|
|
|
fi
|