Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download tar instead of zip archive when installing nerd-fonts. #501

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/trunk-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
if: github.event.schedule != '0 07 * * 5'
name: "⚡"
uses: z-shell/.github/.github/workflows/trunk.yml@main
with:
node_version: "lts/*"
pnpm_arguments: "pnpm i"
upload:
if: github.event.schedule == '0 07 * * 5'
name: "🆙"
Expand Down
6 changes: 3 additions & 3 deletions community/gallery/collection/07_themes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
```
Expand Down