summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2024-01-13 21:57:45 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2024-01-13 21:57:45 -0600
commit778c441b0a91b210c51bd0ef5c269e30de1675f7 (patch)
tree51403a711fa38d87a013bd609ff5e3ad369830a3
parentc0d7d6f62e5aa61464bbf197692ba4887e08944f (diff)
downloaddotconfig-778c441b0a91b210c51bd0ef5c269e30de1675f7.tar.xz
dotconfig-778c441b0a91b210c51bd0ef5c269e30de1675f7.zip
zprofile fixed
-rwxr-xr-xzsh/zprofile2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index 59b1f94..fc9911e 100755
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -36,9 +36,9 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java"
export XDG_STATE_HOME="$HOME/.local/state"
export LESSHISTFILE='-' # Disable this, but it would be considered a state file
export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file
-mkdir -p "$(dirname "$ZHISTFILE")"
# Path
+setopt nullglob # Set in case .local/bin doesn't exist
for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs
export PATH="$HOME/.local/opt:$PATH"
export PATH="$CARGO_HOME/bin:$PATH"