summaryrefslogtreecommitdiff
path: root/halfway/functions.zsh
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-03-01 12:24:00 +0900
committerA Farzat <a@farzat.xyz>2024-10-14 15:54:04 +0900
commit7f8103f42a22adf944db616ec13d2abd36ecb0db (patch)
tree2fa709aad4e9c15048bf96c80e3c62c8852c6c1f /halfway/functions.zsh
parent42357c10435c0358c38fe1435b0c8ec0a6b99d59 (diff)
downloadzsh-7f8103f42a22adf944db616ec13d2abd36ecb0db.tar.gz
zsh-7f8103f42a22adf944db616ec13d2abd36ecb0db.zip
Add nvim as a fullback to $EDITOR
Diffstat (limited to 'halfway/functions.zsh')
-rw-r--r--halfway/functions.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/halfway/functions.zsh b/halfway/functions.zsh
index 54c813b..9aae54a 100644
--- a/halfway/functions.zsh
+++ b/halfway/functions.zsh
@@ -28,16 +28,16 @@ pcopy() {
}
vinfo() {
- INFOPATH="$XDG_DATA_HOME/info:$INFOPATH" $EDITOR -R -M -c "Info $@" +only
+ INFOPATH="$XDG_DATA_HOME/info:$INFOPATH" ${EDITOR:-nvim} -R -M -c "Info $@" +only
}
vn3() {
if [ "$#" -gt 0 ]; then
local direc="$(printf %q "$1")"
shift
- $EDITOR -c "NnnExplorer $direc" "$@"
+ ${EDITOR:-nvim} -c "NnnExplorer $direc" "$@"
else
- $EDITOR -c NnnExplorer
+ ${EDITOR:-nvim} -c NnnExplorer
fi
}