Feature Request
How I use Transient Prompt
Transient Prompt is a very useful feature, especially combined with the --profile feature.
In PowerShell I have the following configuration:
function Invoke-Starship-TransientFunction {
"$(&starship prompt --profile transient) "
}
Enable-TransientPrompt
And in my tokyo-night based starship.toml (simplified below):
format = """
$os\
$directory\
$git_branch\
$git_status\
...
$time\
$cmd_duration\
$status\
$line_break\
$character"""
command_timeout = 750 # milliseconds; default is 500
[profiles]
transient = """
$time\
# Below items will not be rendered ( or will be rendered incorrectly)
$cmd_duration\
$status\
$character"""
This creates a clear list of invoked commands and when they were invoked.
What the FR is attempting to change
However, $cmd_duration and $status will never be rendered, because the invocation function is evaluated only before the execution. (Which is the current design)
The Request
This might be an unattainable dream, but if possible, adding an additional step at the end of the execution to update the transient prompt with the execution results would be awesome.
Alternative solutions
A post transient prompt, printing these status/duration etc, on a line just before the actual prompt, that will remain.
These will need to be conditional in the case invocation ran for over a certain minimum time or the exit code wasn't 0.
Feature Request
How I use Transient Prompt
Transient Prompt is a very useful feature, especially combined with the
--profilefeature.In PowerShell I have the following configuration:
And in my tokyo-night based
starship.toml(simplified below):This creates a clear list of invoked commands and when they were invoked.
What the FR is attempting to change
However,
$cmd_durationand$statuswill never be rendered, because the invocation function is evaluated only before the execution. (Which is the current design)The Request
This might be an unattainable dream, but if possible, adding an additional step at the end of the execution to update the transient prompt with the execution results would be awesome.
Alternative solutions
A post transient prompt, printing these status/duration etc, on a line just before the actual prompt, that will remain.
These will need to be conditional in the case invocation ran for over a certain minimum time or the exit code wasn't 0.