Fabian Boehm f7cc1743c6
Allow deciding if a command should be saved to history (#10302)
Call fish_should_add_to_history to see if a command should be saved

If it returns 0, it will be saved, if it returns anything else, it
will be ephemeral.

It gets the right-trimmed text as the argument.

If it doesn't exist, we do the historical behavior of checking for a
leading space.

That means you can now turn that off by defining a
`fish_should_add_to_history` that just doesn't check it.

documentation based on #9298
2024-03-09 12:04:16 +01:00
..
2023-07-09 14:11:01 +08:00
2024-01-06 22:24:55 +08:00
2022-09-17 21:31:06 +08:00
2023-05-25 17:46:25 +02:00
2023-06-01 18:20:19 +02:00
2023-08-23 23:08:56 +02:00
2024-01-30 18:18:55 +08:00
2024-02-03 11:12:11 +01:00
2023-04-28 17:11:23 +02:00