<commit_before>----------
zsh config
----------

A zsh configuration using `oh-my-zsh <https://ohmyz.sh/>`_ and `powerlevel10k
<https://github.com/romkatv/powerlevel10k>`_. There is minimal customization to
make this work more easily with
`my spacemacs configuration <https://github.com/MauroCalderara/spacemacs_config.git>`_
but this config can be used independently as well.

.. image:: https://github.com/MauroCalderara/zsh_config/raw/master/docs/screenshot.png

For things to look as in the above screenshot a font with support for special
symbols needs to be used. I use Fira Code patched by
`<NAME> <https://github.com/ryanoasis/nerd-fonts>`_. See the instructions
below on how to install that specific font - or another one with the same symbols.

Installation
-------------

The configuration assumes that `oh-my-zsh <https://ohmyz.sh/>`_ is available
under ``~/.zsh`` and `powerlevel10k <https://github.com/romkatv/powerlevel10k>`_
under ``~/.zsh/custom/themes/powerlevel10k``, respectively. A suggestion for
``~/.zshrc`` as well as an entry hook for use under ``~/.zsh/custom`` are part
of the repository as well.

Following these instructions will get you started::

   # Optional: download and install a font supporting fancy symbols, e.g.
   # https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode
   #
   # To install the font for your user extract the archive to
   # ~/.local/share/fonts, then run fc-cache -f -v and finally adjust the font
   # in the terminal that you use to run zsh.
   
   # Fetch oh-my-zsh (alternatively one can follow the official instructions
   # and move things into place afterwards)
   git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.zsh
   
   # Fetch powerlevel10k
   git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \
     ~/.zsh/custom/themes/powerlevel10k
   
   # Fetch this repository
   git clone --depth=1 https://github.com/MauroCalderara/zsh_config.git \
     ~/.zsh/custom/mmc
   
   # Activate the entry hook
   (cd ~/.zsh/custom && ln -s mmc/entry-hook mmc.zsh)
   
   # Activate the .zshrc (this will fail if you already have a ~/.zshrc)
   (cd ~ && ln -s .zsh/custom/mmc/zshrc .zshrc)

If the above worked running ``zsh`` should give you a decent looking prompt. If
not, see the next section.


Updating<commit_msg>Improving font installation instructions in README<commit_after>----------
zsh config
----------

A zsh configuration using `oh-my-zsh <https://ohmyz.sh/>`_ and `powerlevel10k
<https://github.com/romkatv/powerlevel10k>`_. There is minimal customization to
make this work more easily with
`my spacemacs configuration <https://github.com/MauroCalderara/spacemacs_config.git>`_
but this config can be used independently as well.

.. image:: https://github.com/MauroCalderara/zsh_config/raw/master/docs/screenshot.png

For things to look as in the above screenshot a font with support for special
symbols needs to be used. I use Fira Code patched by
`Ryan McIntyre <https://github.com/ryanoasis/nerd-fonts>`_. See the instructions
below on how to install that specific font - or another one with the same symbols.

Installation
-------------

The configuration assumes that `oh-my-zsh <https://ohmyz.sh/>`_ is available
under ``~/.zsh`` and `powerlevel10k <https://github.com/romkatv/powerlevel10k>`_
under ``~/.zsh/custom/themes/powerlevel10k``, respectively. A suggestion for
``~/.zshrc`` as well as an entry hook for use under ``~/.zsh/custom`` are part
of the repository as well.

Following these instructions will get you started::

   # Optional: download a font supporting fancy symbols from
   # https://github.com/ryanoasis/nerd-fonts/releases/latest (or create one
   # yourself).
   #
   # To install a downloaded font for your user extract the archive to
   # ~/.local/share/fonts, then run fc-cache -f -v and adjust the font in the
   # terminal that you use to run zsh.
   
   # Fetch oh-my-zsh (alternatively one can follow the official instructions
   # and move things into place afterwards)
   git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.zsh
   
   # Fetch powerlevel10k
   git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \
     ~/.zsh/custom/themes/powerlevel10k
   
   # Fetch this repository
   git clone --depth=1 https://github.com/MauroCalderara/zsh_config.git \
     ~/.zsh/custom/mmc
   
   # Activate the entry hook
   (cd ~/.zsh/custom && ln -s mmc/entry-hook mmc.zsh)
   
   # Activate the .zshrc (this will fail if you already have a ~/.zshrc)
   (cd ~ && ln -s .zsh/custom/mmc/zshrc .zshrc)

If the above worked running ``zsh`` should give you a decent looking prompt. If
not, see the next section.


Updating
{'fraction_non_alphanumeric': 0.12005108556832694, 'fraction_numerical': 0.008088548318433376, 'mean_word_length': 3.307057745187901, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 22, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6028133', 'n_tokens_mistral': 1546, 'n_tokens_neox': 1481, 'n_words': 513}