Create prompt module
This commit is contained in:
10
modules/prompt.nix
Normal file
10
modules/prompt.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ options, lib, config, ... }:
|
||||
{
|
||||
options.promptEmoji = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
config.programs.bash.promptInit = ''
|
||||
PS1="\[\e]0;\u@\h: \w\a\]\n${config.promptEmoji} \[\033[1;$((UID ? 32 : 31))m\]\w \\$\[\033[0m\] "
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user