mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
flox
This commit is contained in:
parent
aeefb1caf6
commit
b972983b6f
1 changed files with 6 additions and 5 deletions
|
|
@ -106,14 +106,15 @@ in
|
|||
};
|
||||
|
||||
custom.flox_prompt_indicator = {
|
||||
description = "Shows the active Flox environment name"; # REVERTED
|
||||
command = ''if [ -n "$FLOX_PROMPT_ENVIRONMENTS" ]; then echo "via [❄️ $FLOX_PROMPT_ENVIRONMENTS](bold blue) "; fi''; # REVERTED
|
||||
when = ''test -n "$FLOX_PROMPT_ENVIRONMENTS"''; # REVERTED
|
||||
format = "$output"; # Keep this corrected version
|
||||
description = "Shows the active Flox environment name";
|
||||
command = ''if [ -n "$FLOX_PROMPT_ENVIRONMENTS" ]; then echo "via [❄️ $FLOX_PROMPT_ENVIRONMENTS](bold blue) "; fi'';
|
||||
when = ''test -n "$FLOX_PROMPT_ENVIRONMENTS"'';
|
||||
format = "[$output]($style)"; # MODIFIED HERE
|
||||
style = "fg:default"; # ADDED HERE (use "none" or omit if "default" adds unwanted color)
|
||||
shell = "bash";
|
||||
};
|
||||
|
||||
format = ''$directory $git_branch $conda$custom.flox_prompt_indicator$nix_shell$cmd_duration$status$character''; # Keep the dot
|
||||
format = ''$directory $git_branch $conda$custom.flox_prompt_indicator$nix_shell$cmd_duration$status$character'';
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue