Skip to content

Commit

Permalink
feat(starship): Show '.envrc' italic in prompt when using direnv env
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Oct 6, 2023
1 parent b363675 commit 97bb290
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions home-manager/modules/starship.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"\${custom.git_server_icon}"
"$git_branch"
"$git_status"
"\${custom.direnv} "
"\${custom.nix_shell}"
"$line_break"
"$character"
Expand Down Expand Up @@ -52,6 +53,13 @@
style = "bold #6ec2e8";
format = "[ ]($style)";
};
direnv = {
description = "Show '.envrc' when using a direnv environment";
when = ''[ "$DIRENV_DIR" != "" ]'';
shell = [ "bash" "--noprofile" "--norc" ];
style = "italic #e5c07b";
format = "[.envrc]($style)";
};
};
};
};
Expand Down

0 comments on commit 97bb290

Please sign in to comment.