bin/open-editor: Needed as Blankie pleased.

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-02-22 19:35:07 +08:00
parent e95919895e
commit e260788e17
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if [[ $2 == "--use-nano" ]]; then
nano $1
elif [[ $2 == "--use-code" ]]; then
vscode --wait $1
else
elif [[ $2 == "" ]] && [[ $1 != "" ]]; then
if [[ $VSCODE_PATH != "" ]]; then
code --wait $1
elif [[ $NANO_PATH != "" ]]; then
@ -16,4 +16,6 @@ else
else
vi $1
fi
else
echo "Usage: $0 </path/to/file> [--use-nano|code]"
fi