guix-home-manager/doc/bash.md

bash.md

Bash

Bash is the default shell on Guix. This lets you configure your shell environment and set it up properly.

Main Configuration

Bash is configured by using the bash-home-type service type.

Scheme Procedure: bash-home-type

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

Data Type: bash-configuration

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

Example Configuration

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