From a0943a0a387400afc8e49e7a626532e73990d24f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 31 Jul 2022 15:16:04 -0500 Subject: bunch more stuff --- zsh/zprofile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 zsh/zprofile (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile old mode 100644 new mode 100755 index 618514d..52be283 --- 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" -- cgit v1.2.3