guix-home-manager/doc/zsh.md

zsh.md

Zsh

The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting.

Main Configuration

Zsh is configured by using the zsh-home-type service type.

Scheme Procedure: zsh-home-type

The type of service that generates configuration files for zsh. Its value is a zsh-configuration object.

Data Type: zsh-configuration

Data type that represents the Zsh configuration. This data type has the following fields:

Example Configuration

(user-home
  zsh-home-type
  (zsh-configuration
    (rc (append default-zshrc
                '("alias vim=nvim")))
    (profile (append default-zprofile
                     `("EDITOR=nvim\n"
               ;; Minetest would not work without this :/
                       "export MINETEST_SUBGAME_PATH="
               ,(@@ (gnu packages games) minetest-data)
               "/share/minetest/games/")))
    (history "/data/alice/.zsh_history")))