feat: ccache in zshrc
This commit is contained in:
9
.zshrc
9
.zshrc
@@ -17,6 +17,10 @@ export ZSH_CUSTOM="$HOME/.config/zsh_custom"
|
|||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
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
|
# Set list of themes to pick from when loading at random
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
# a theme from this variable instead of looking in $ZSH/themes/
|
# 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.
|
# 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
|
[[ ! -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user