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
In comments for #26, I mentioned wanting to create a segment that displays an icon only if (Get-PSReadLineOption).HistorySaveStyle -ne 'SaveNothing'. This does not work correctly because each time, the command gets run in a new instance of pwsh.
@JanDeDobbeleer said he would look into seeing if he can modify the code so that a command can be run directly in your shell fixing this problem.
The text was updated successfully, but these errors were encountered:
AjayKMehta
changed the title
Run shell commands for command segment directly in shell
Run shell commands for command segment directly in shell
Oct 9, 2020
@AjayKMehta unfortunately running direct commands isn't possible given the compiled nature of the beast. Although I think there might be another way to offer this functionality without generating a performance hit.
I'll try to draft a solution later today/tomorrow.
In comments for #26, I mentioned wanting to create a segment that displays an icon only if
(Get-PSReadLineOption).HistorySaveStyle -ne 'SaveNothing'
. This does not work correctly because each time, the command gets run in a new instance ofpwsh
.Theme used to test this: https://gist.github.com/AjayKMehta/1b5324a485a9db6e7d326276ab5786cf
@JanDeDobbeleer said he would look into seeing if he can modify the code so that a command can be run directly in your shell fixing this problem.
The text was updated successfully, but these errors were encountered: