Skip to content

Bash

programs.bash.blesh.enable

Whether to enable blesh, a full-featured line editor written in pure Bash. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/blesh.nix

programs.bash.completion.enable

Whether to enable Bash completion for all interactive bash shells. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash-completion.nix

programs.bash.completion.package

The bash-completion package to use. Type: package

Default

pkgs.bash-completion

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash-completion.nix

programs.bash.enableLsColors

Whether to enable extra colors in directory listings. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/ls-colors.nix

programs.bash.interactiveShellInit

Shell script code called during interactive bash shell initialisation.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix

programs.bash.loginShellInit

Shell script code called during login bash shell initialisation.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix

programs.bash.promptInit

Shell script code used to initialise the bash prompt.

Type: strings concatenated with "\n"

Default

'' # Provide a nice prompt if the terminal supports it. if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then PROMPT_COLOR="1;31m" ((UID)) && PROMPT_COLOR="1;32m" if [ -n "$INSIDE_EMACS" ]; then # Emacs term mode doesn't support xterm title escape sequence (\e]0;) PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " else PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " fi if test "$TERM" = "xterm"; then PS1="\[\033]2;\h:\u:\w\007\]$PS1" fi fi''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix

programs.bash.shellAliases

Set of aliases for bash shell, which overrides {option}environment.shellAliases. See {option}environment.shellAliases for an option format description.

Type: attribute set of (null or string or path)

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix

programs.bash.shellInit

Shell script code called during bash shell initialisation.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix

programs.bash.undistractMe.enable

Whether to enable notifications when long-running terminal commands complete. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/undistract-me.nix

programs.bash.undistractMe.playSound

Whether to enable notification sounds when long-running terminal commands complete. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/undistract-me.nix

programs.bash.undistractMe.timeout

Number of seconds it would take for a command to be considered long-running.

Type: signed integer

Default

10

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/bash/undistract-me.nix

programs.bash.vteIntegration

Whether to enable Bash integration for VTE terminals. This allows it to preserve the current directory of the shell across terminals.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/vte.nix