diff options
| author | 0scar <example@example.org> | 2022-07-08 10:45:52 +0000 |
|---|---|---|
| committer | 0scar <example@example.org> | 2022-08-23 18:15:09 +0000 |
| commit | c5a2e177dbce790d0ef8751b7000b82e3c0fd305 (patch) | |
| tree | 3f8dccdd658f9306e7745da29e7ffbcf900d8e2f | |
| parent | fa30c58013689488b25f6918882ad63a93becaa9 (diff) | |
Add bat cache rebuild
| -rw-r--r-- | .zprofile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,4 +75,7 @@ export CARGO_HOME="${XDG_CACHE_HOME:-$HOME/.cache}/cargo" export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" export RUSTUP_HOME="${XDG_CACHE_HOME:-$HOME/.cache}/rustup" +# Build bat cache if necessary +$(which bat >/dev/null) && ! [ -f "${XDG_CACHE_HOME}/bat/themes.bin" ] && bat cache --build >/dev/null || true + [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx "$XINITRC" |
