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
The $PROMPT_COMMAND variable can be used to execute arbitrary commands just before beginning command line input, but the ability to execute commands immediately after completion of input has not existed to date. Providing such a functionality would allow more complex user scripts to be executed, such as measuring the execution time of the entered command.
Something like $POST_PROMPT_COMMAND would be useful for this purpose.
The text was updated successfully, but these errors were encountered:
E.g. to get the prompt or part of it (as fits) into the window title or set the screen/tmux buffer name accordingly. I assume having access to the command entered at that time.
On bash you can also set $PS0 or do trap 'command' DEBUG and set command to whatever you want. None of these exist in yash currently sadly. It would also be nice if you could set a command to be run no matter what after pressing enter (if i recall correctly in bash you can bind enter to achieve this but once again this functionality does not exist in yash) and that would enable you to make a transient prompt.
The
$PROMPT_COMMAND
variable can be used to execute arbitrary commands just before beginning command line input, but the ability to execute commands immediately after completion of input has not existed to date. Providing such a functionality would allow more complex user scripts to be executed, such as measuring the execution time of the entered command.Something like
$POST_PROMPT_COMMAND
would be useful for this purpose.The text was updated successfully, but these errors were encountered: