We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 288b6ef commit b73c7f1Copy full SHA for b73c7f1
1 file changed
mkDevShell/options.nix
@@ -15,11 +15,8 @@ let
15
str
16
;
17
18
- # Nix strings only support \t, \r and \n as escape codes, so use JSON to get
19
- # the escape code.
20
- esc = builtins.fromJSON ''"\u001B"'';
21
- ansiOrange = "${esc}[38;5;202m";
22
- ansiReset = "${esc}[0m";
+ ansiBoldOrange = "$(tput setaf 202)";
+ ansiReset = "$(tput sgr0)";
23
24
commandsToMenu = commands:
25
let
@@ -104,7 +101,7 @@ in
104
101
motd = mkOption {
105
102
type = types.str;
106
103
default = ''
107
- ${ansiOrange}🔨 Welcome to ${config.name}${ansiReset}
+ ${ansiBoldOrange}🔨 Welcome to ${config.name}${ansiReset}
108
$(devshell-menu)
109
'';
110
description = ''
0 commit comments