From 103935130b858b48b0e08be6ff50ac6e5971f116 Mon Sep 17 00:00:00 2001 From: sebastian <44314956+meinzer1899@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:21:01 +0200 Subject: [PATCH] Download tar instead of zip archive when installing nerd-fonts. In release v3.0.2 (https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.2), the release archives are also provided as .tar.xz which results in a size decrease of ~90%. zi can handle both tar and zi archives. Signed-off-by: sebastian <44314956+meinzer1899@users.noreply.github.com> --- community/gallery/collection/07_themes.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/community/gallery/collection/07_themes.mdx b/community/gallery/collection/07_themes.mdx index abdce72f..e3a7cab7 100644 --- a/community/gallery/collection/07_themes.mdx +++ b/community/gallery/collection/07_themes.mdx @@ -43,11 +43,11 @@ fi ::: -Install fonts for powerlevel10k. It has to match your system settings as this is an example of how flexible Zi is and can install anything in a preferred way. +Install nerd fonts for powerlevel10k. It has to match your system settings as this is an example of how flexible Zi is and can install anything in a preferred way. The following snippet placed in the `.zshrc` file will: -- check if conditions are met to proceed with the install +- check if the script runs on a Linux OS and if the specified font directory exists. You may have to adapt the fonts directory for your system (e.g. `${HOME}/.local/share/fonts`). - download, extract, clean not required files, and move fonts to the required directory. - update font cache. @@ -58,7 +58,7 @@ When running: `zi update` will: ```shell zi ice if"[[ -d ${HOME}/.fonts/ttf ]] && [[ $OSTYPE = linux* ]]" \ - id-as"meslo" from"gh-r" bpick"Meslo.zip" extract nocompile depth"1" \ + id-as"meslo" from"gh-r" bpick"Meslo.tar.xz" extract nocompile depth"1" \ atclone="rm -f *Windows*; mv -vf *.ttf ${HOME}/.fonts/ttf/; fc-cache -v -f" atpull"%atclone" zi light ryanoasis/nerd-fonts ```