execution-time in bash #474
-
I'd like to have the execution time of my previous command in my prompt, but I'm not quite sure how to pass that parameter to oh-my-posh. The Docs say "the installation guide shows how to include this argument for PowerShell and Zsh." But I don't actually see an example for either of those shells. As a proof of concept, In my .bashrc file I've overridden PS0 to save the start time, and added a function to call when the prompt is printed, which I call in the prefix field of the executiontime block of my .oh-my-posh.omp.json concept. Is there a specific environmental variable I can overwrite to give oh-my-posh the execution time? .bashrc PS0='$(echo function get_execution_time() { } .oh-my-posh.omp.json Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
We tried to facilitate this, not sure why we didn't in the end (think we had trouble with it). If you have a way, extending the init script is the way to go. |
Beta Was this translation helpful? Give feedback.
-
Supported as of v3.105.0 |
Beta Was this translation helpful? Give feedback.
Supported as of v3.105.0