summaryrefslogtreecommitdiff
path: root/zsh/zprofile
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-07-31 15:16:04 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-07-31 15:16:04 -0500
commita0943a0a387400afc8e49e7a626532e73990d24f (patch)
tree5e14f8a353c9b05a1a97f029c66c9f0e28f352a1 /zsh/zprofile
parent4af49ed67fbf358674d45fb8af3c4c3efaf90f58 (diff)
downloaddotconfig-a0943a0a387400afc8e49e7a626532e73990d24f.tar.xz
dotconfig-a0943a0a387400afc8e49e7a626532e73990d24f.zip
bunch more stuff
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"