From f2fc3599a8b3ed7098377cdfa238a8fd3ff5a7ba Mon Sep 17 00:00:00 2001 From: Amy Retzerau Date: Tue, 21 Jul 2026 11:23:37 +0000 Subject: [PATCH] feat: ccache in zshrc --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 76d9aa1..f08ffbe 100644 --- a/.zshrc +++ b/.zshrc @@ -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)