Skip to content

Commit

Permalink
misc(zsh): standardize zsh hook script path
Browse files Browse the repository at this point in the history
  • Loading branch information
himkt committed Nov 7, 2024
1 parent 09bf60e commit d7a9fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zsh/config.d/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export SAVEHIST=100000
export XDG_CONFIG_HOME=$HOME/.config
export ZPLUG_HOME=$HOME/.config/zplug
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=241"
export HIMKT_DOTFILES_PRIVATE_CONFIG_DIR=$XDG_CONFIG_HOME/himkt/dotfiles/zsh/config.d

if [ "$COLORTERM" = "gnome-terminal" ]; then export TERM=xterm-256color; fi
if [ "$COLORTERM" = "xfce4-terminal" ]; then export TERM=xterm-256color; fi
Expand All @@ -96,7 +97,7 @@ fi
export LANG=$language
export LC_CTYPE=$language

for source in $(find $XDG_CONFIG_HOME/dotfiles/zsh -name "*.pre.zsh")
for source in $(find $HIMKT_DOTFILES_PRIVATE_CONFIG_DIR -name "*.pre.zsh")
do
source $source
done
Expand Down Expand Up @@ -264,7 +265,7 @@ PROMPT='$(current_platform)$(current_context)$(current_path)$(current_git_status
RPROMPT='$(current_timestamp)'
SPROMPT="%{${fg[red]}%}%r is correct? [y, n, a, e]:%{${reset_color}%}"

for source in $(find $XDG_CONFIG_HOME/dotfiles/zsh -name "*.post.zsh")
for source in $(find $HIMKT_DOTFILES_PRIVATE_CONFIG_DIR -name "*.post.zsh")
do
source $source
done

0 comments on commit d7a9fde

Please sign in to comment.