modules/programs/bash/bash.nix: cosmetic indention fix
This commit is contained in:
parent
a333f7212e
commit
04ba5de70a
@ -28,35 +28,35 @@ let
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
environment.promptInit = mkOption {
|
environment.promptInit = mkOption {
|
||||||
default = ''
|
default = ''
|
||||||
# Provide a nice prompt.
|
# Provide a nice prompt.
|
||||||
PROMPT_COLOR="1;31m"
|
PROMPT_COLOR="1;31m"
|
||||||
let $UID && PROMPT_COLOR="1;32m"
|
let $UID && PROMPT_COLOR="1;32m"
|
||||||
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
|
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
|
||||||
if test "$TERM" = "xterm"; then
|
if test "$TERM" = "xterm"; then
|
||||||
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
|
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
description = "
|
description = "
|
||||||
Script used to initialized shell prompt.
|
Script used to initialized shell prompt.
|
||||||
";
|
";
|
||||||
type = with pkgs.lib.types; string;
|
type = with pkgs.lib.types; string;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.shellInit = mkOption {
|
environment.shellInit = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = ''export PATH=/godi/bin/:$PATH'';
|
example = ''export PATH=/godi/bin/:$PATH'';
|
||||||
description = "
|
description = "
|
||||||
Script used to initialized user shell environments.
|
Script used to initialized user shell environments.
|
||||||
";
|
";
|
||||||
type = with pkgs.lib.types; string;
|
type = with pkgs.lib.types; string;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.enableBashCompletion = mkOption {
|
environment.enableBashCompletion = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enable bash-completion for all interactive shells.";
|
description = "Enable bash-completion for all interactive shells.";
|
||||||
type = with pkgs.lib.types; bool;
|
type = with pkgs.lib.types; bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user