summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.profile37
1 files changed, 32 insertions, 5 deletions
diff --git a/.profile b/.profile
index 660cbf6..c5eaf60 100644
--- a/.profile
+++ b/.profile
@@ -1,10 +1,37 @@
#!/bin/sh -l
-export EDITOR=ex
-export VISUAL=vim
-export PAGER=less
+if command -v nvim > /dev/null
+then
+ export VISUAL=nvim
+elif command -v vim > /dev/null
+then
+ export VISUAL=vim
+elif command -v vi > /dev/null
+then
+ export VISUAL=vi
+fi
-PATH="$HOME/.local/bin:$HOME/.local/opt/flutter/bin:$HOME/.local/opt/android-studio/bin:$PATH"
+if command -v ex > /dev/null
+then
+ export EDITOR=ex
+elif command -v ed > /dev/null
+then
+ export EDITOR=ed
+fi
+export FCEDIT="$VISUAL"
-export ENV="$HOME/.shrc"
+if command -v less > /dev/null
+then
+ export PAGER=less
+elif command -v more > /dev/null
+then
+ export PAGER=more
+fi
+if test -r "$HOME"/.shrc
+then
+ export ENV="$HOME"/.shrc
+fi
+
+PATH=$HOME/.nodenv/bin:$HOME/.pyenv/bin:$HOME/.local/bin/:$PATH
+export MANPATH="$HOME"/.local/share/man: