summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2023-12-05 06:47:17 +0000
committerTyler Davis <tyler@gluecode.net>2023-12-05 06:47:17 +0000
commit4a7262dd2c4bd6d87ed86b8022d052cd04178c34 (patch)
tree8bf04ea9d5ce5e7a452703fe025606cd0b5bdb9b /.profile
parentc4808b9d3337a4684c834a4b46ce8d1f8238712c (diff)
downloaddotfiles-4a7262dd2c4bd6d87ed86b8022d052cd04178c34.tar.gz
dotfiles-4a7262dd2c4bd6d87ed86b8022d052cd04178c34.zip
sh: fix confgit export
Diffstat (limited to '.profile')
-rw-r--r--.profile17
1 files changed, 17 insertions, 0 deletions
diff --git a/.profile b/.profile
index 4c1900f..d62433b 100644
--- a/.profile
+++ b/.profile
@@ -71,8 +71,25 @@ fi
# Vim not detected? Use vi as a fallback
if [ ! "$(command -v vim)" ]; then
alias vim=vi
+ export EDITOR="vi"
fi
+if [ "$(command -v code)" ] && [ "$(env | grep VSCODE)" ]; then
+ export EDITOR="code"
+ export VISUAL="code"
+elif [ -d "$HOME/.config/doom" ] && [ "$(command -v emacs)" ]; then
+ export EDITOR="emacs"
+ export VISUAL="emacs"
+ export PATH=$PATH:$HOME/.config/emacs/bin
+elif [ "$(command -v hx)" ]; then
+ export EDITOR="hx"
+ export VISUAL="hx"
+else
+ export EDITOR="vim"
+ export VISUAL="vim"
+fi
+
+
# Ensure less always uses the one-page, raw control characters, and no-init settings
export LESS=FRX
# Defaults