You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I just started using Starship and am really enjoying it!
I'm trying to configure the Git portion of my prompt in a very specific way, and based on the way that Git modules are distributed, what I really want to do is have the format section of one module reference the output of another module.
Example:
[git_branch]
format = '''on [$symbol$branch](bold blue) $git_status$git_metrics-> [($remote_name)/($remote_branch)](bold blue)
'''
As you can see in the above example, I'm trying to have the outputs of the git_status and git_metrics modules intermixed within the output of the git_branch module.
This doesn't work, and I'm not sure why. I don't get any errors, but nothing is printed either. Adding $git_status$git_metrics to my global format works, so I know it's not the modules themselves that are misbehaving.
Is this "module nesting" a supported feature? And if so, how would I go about doing it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, I just started using Starship and am really enjoying it!
I'm trying to configure the Git portion of my prompt in a very specific way, and based on the way that Git modules are distributed, what I really want to do is have the
format
section of one module reference the output of another module.Example:
As you can see in the above example, I'm trying to have the outputs of the
git_status
andgit_metrics
modules intermixed within the output of thegit_branch
module.This doesn't work, and I'm not sure why. I don't get any errors, but nothing is printed either. Adding
$git_status$git_metrics
to my globalformat
works, so I know it's not the modules themselves that are misbehaving.Is this "module nesting" a supported feature? And if so, how would I go about doing it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions