diff options
author | 2025-01-17 19:28:01 +0100 | |
---|---|---|
committer | 2025-01-17 19:28:01 +0100 | |
commit | cc3c1f5e9f132716bad18fd8f956bb4ae0517bcb (patch) | |
tree | dfd86ffe306b0c024c0137388560031e472e4331 /env.zsh | |
parent | d08ee7b1f0ae2bbd3491939557032c6117807dae (diff) | |
download | zuwu-cc3c1f5e9f132716bad18fd8f956bb4ae0517bcb.tar.gz zuwu-cc3c1f5e9f132716bad18fd8f956bb4ae0517bcb.tar.bz2 zuwu-cc3c1f5e9f132716bad18fd8f956bb4ae0517bcb.tar.lz zuwu-cc3c1f5e9f132716bad18fd8f956bb4ae0517bcb.zip |
feat: ensure ~/.local/bin is in path in env.zsh aswell
Diffstat (limited to 'env.zsh')
-rw-r--r-- | env.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |