summaryrefslogtreecommitdiff
path: root/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zprofile')
-rwxr-xr-x[-rw-r--r--]zsh/zprofile5
1 files changed, 3 insertions, 2 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index 618514d..52be283 100644..100755
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -27,8 +27,8 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java"
export XDG_STATE_HOME="$HOME/.local/state"
- HISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Zsh internal variable, doesn't need to be available to general environment
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
# Path
for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs
@@ -39,7 +39,8 @@ export PATH="$CARGO_HOME/bin:$PATH"
export QT_QPA_PLATFORMTHEME='qt5ct'
# Misc Zsh setup
-mkdir -p "$HISTFILE"
+mkdir -p "$(dirname "$ZHISTFILE")"
+source "$ZDOTDIR/profiles/zprofile.$HOST" 2>/dev/null # Source additional host-specific profiles
# Autostart X after login
[ -z $DISPLAY ] && [[ $UID != 0 ]] && [[ $TTY =~ /dev/tty(1|C0) ]] && startx "$X11CONFIG/xinitrc"