-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History is not updated when running multiple commands in the same line #8905
Comments
The history is updated per-commandline. |
yeah I think this is the least surprising behavior. If there is a concrete use case, we have a mechanism for tracing every individual process ( |
Thanks for the context. Is there a way I can get the last command ( |
There is no way to change this behavior so that You haven't really explained what you want to do here, so we can't say any more. |
Probably I'm asking a XY question. This probably should be a user question instead of an issue. I will get email after foo completes using command "notify" includes I now learnt history is for per-commandline and it makes sense to me. Thanks |
I just type Though I think it's weird that there is no way to access the commandline while the command is running.
so Probably this is best exposed as |
Thanks for providing solutions. They work for me! I now start using the two solutions both: 1) I added a post-exec hook for command long commands like |
Makes it possible to retrieve the currently executing command line as opposed to the currently executing command (`status current-command`). Closes fish-shell#8905.
Makes it possible to retrieve the currently executing command line as opposed to the currently executing command (`status current-command`). Closes fish-shell#8905.
Environment
Problem
Running following commands, I got "true". I expect "false".
The text was updated successfully, but these errors were encountered: