feat: ccache in zshrc

This commit is contained in:
2026-07-21 11:23:37 +00:00
parent cfba74467f
commit f2fc3599a8

9
.zshrc
View File

@@ -17,6 +17,10 @@ export ZSH_CUSTOM="$HOME/.config/zsh_custom"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
if [[ -n $ZMX_SESSION ]]; then
export PS1="[$ZMX_SESSION] ${PS1}"
fi
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
@@ -118,3 +122,8 @@ source $ZSH/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.config/zsh_custom/10-p10k.zsh.
[[ ! -f ~/.config/zsh_custom/10-p10k.zsh ]] || source ~/.config/zsh_custom/10-p10k.zsh
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 50G > /dev/null
path=("$HOME/.nix-profile/bin" $path)