bin/open-editor: Termux don't like VS Code either.
Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
parent
35e9a7e622
commit
efbe5a1f1d
|
@ -1,8 +1,8 @@
|
|||
#!/bin/env bash
|
||||
|
||||
VSCODE_PATH=$(command -v code)
|
||||
NANO_PATH=$(command -v code)
|
||||
VI_PATH=$(command -v code)
|
||||
NANO_PATH=$(command -v nano)
|
||||
VI_PATH=$(command -v vi)
|
||||
|
||||
if [[ $2 == "--use-nano" ]]; then
|
||||
nano $1
|
||||
|
@ -18,4 +18,4 @@ elif [[ $2 == "" ]] && [[ $1 != "" ]]; then
|
|||
fi
|
||||
else
|
||||
echo "Usage: $0 </path/to/file> [--use-nano|code]"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue