aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile23
1 files changed, 23 insertions, 0 deletions
diff --git a/sh/profile b/sh/profile
new file mode 100644
index 00000000..eb2b7e8f
--- /dev/null
+++ b/sh/profile
@@ -0,0 +1,23 @@
+# Set editor
+export EDITOR='vi'
+export VISUAL="$EDITOR"
+
+# Set pager
+export PAGER='less'
+
+# Add ~/.local/bin to PATH
+[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
+export PATH
+
+# Load any supplementary scripts
+if [[ -d "$HOME/.profile.d" ]]
+then
+ for file in $HOME/.profile.d/*
+ do
+ . $file
+ done
+fi
+
+# If running Bash, try to run .bashrc
+[ -n "$BASH" ] && [ -e "$HOME/.bashrc" ] && . $HOME/.bashrc
+