mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
flox format
This commit is contained in:
parent
2cc47ce82f
commit
fbd93731a4
1 changed files with 11 additions and 11 deletions
|
|
@ -93,24 +93,24 @@ in
|
|||
|
||||
conda = {
|
||||
truncation_length = 1;
|
||||
format = ''[$symbol$environment]($style) '';
|
||||
format = ''[$symbol$environment]($style) ''; # conda often includes its own trailing space in its default format.
|
||||
symbol = " ";
|
||||
style = "green bold";
|
||||
ignore_base = false;
|
||||
disabled = false;
|
||||
};
|
||||
|
||||
# custom.flox_prompt_indicator section REMOVED
|
||||
# custom.flox_prompt_indicator = {
|
||||
# description = "Shows the active Flox environment name";
|
||||
# command = ''if [ -n "$FLOX_PROMPT_ENVIRONMENTS" ]; then echo -n "via ❄️ $FLOX_PROMPT_ENVIRONMENTS"; else echo -n ""; fi'';
|
||||
# when = ''test -n "$FLOX_PROMPT_ENVIRONMENTS"'';
|
||||
# format = "$output";
|
||||
# shell = "bash";
|
||||
# };
|
||||
custom.flox_prompt_indicator = {
|
||||
description = "Shows the active Flox environment name";
|
||||
# Command outputs desired text with a trailing space, or nothing. echo -n prevents extra newlines.
|
||||
command = ''if [ -n "$FLOX_PROMPT_ENVIRONMENTS" ]; then echo -n "via ❄️ $FLOX_PROMPT_ENVIRONMENTS "; else echo -n ""; fi'';
|
||||
when = ''test -n "$FLOX_PROMPT_ENVIRONMENTS"''; # Only evaluate further if the variable is set
|
||||
format = "$output"; # Take the output of the command as is
|
||||
shell = "bash";
|
||||
};
|
||||
|
||||
# Main format string: $custom.flox_prompt_indicator REMOVED
|
||||
format = ''$directory $git_branch $conda $nix_shell$cmd_duration$status$character''; # REMOVED $custom.flox_prompt_indicator and adjusted spacing
|
||||
# Main format string
|
||||
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