summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-19 06:43:08 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-19 06:43:08 -0600
commit49ea9623a67fa5030f5e7d70dae6e79734cc5649 (patch)
tree4c2947090f1a93fd7d84161d462faec9bb37acac
parentf21b65d2c5e0e1c5a2e4aa22500c39ff74023286 (diff)
update editor variable
-rw-r--r--.config/shell/aliasrc2
-rw-r--r--.config/shell/profile2
2 files changed, 3 insertions, 1 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 6f4a4dd..ce747f2 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -1,7 +1,7 @@
#!/bin/sh
# vim selection
-command -v nvim &> /dev/null && alias vim="nvim" vimdiff="nvim -d"
+command -v nvim &> /dev/null && alias vim="nvim" vimdiff="nvim -d" vi="nvim"
# verbosity
alias cp="cp -iv"
diff --git a/.config/shell/profile b/.config/shell/profile
index 071a8ba..1d4ed06 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -8,6 +8,8 @@ if command -v nvim &> /dev/null; then
elif command -v vim &> /dev/null; then
export EDITOR="vim"
fi
+export SUDO_EDITOR="$EDITOR"
+export VISUAL="$EDITOR"
# $HOME cleanup
# https://wiki.archlinux.org/index.php/XDG_Base_Directory
export XDG_CONFIG_HOME="$HOME/.config"