aboutsummaryrefslogtreecommitdiffstats
path: root/env.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'env.zsh')
-rw-r--r--env.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/env.zsh b/env.zsh
index 04d1be4..2956f63 100644
--- a/env.zsh
+++ b/env.zsh
@@ -8,6 +8,8 @@
#
# Currently, we just ensure your environment is sensible - e.g. we ensure your LANG is well-defined, etc...
+
+# Validate $LANG is set correctly
if [[ "$VALIDATE_LANG" != "false" ]]; then
if [[ "$LANG" == "" ]] || [[ "$LANG" == "C" ]]; then
# Modern systems will have UTF-8 everywhere outside of a TTY.
@@ -22,3 +24,8 @@ if [[ "$VALIDATE_LANG" != "false" ]]; then
export LC_ALL="$LANG"
fi
fi
+
+# Ensure ~/.local/bin is in the PATH
+if [[ ":$PATH:" != *":$HOME/.local/bin:"* ]]; then
+ export PATH="$PATH:$HOME/.local/bin"
+fi