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
..
2022-06-16 18:43:28 +02:00
2021-04-17 16:43:27 -07:00
2023-11-15 17:58:42 +01:00
2020-11-22 14:39:48 +01:00
2022-06-16 18:43:28 +02:00
2024-02-01 21:42:55 +01:00
2020-06-24 20:43:56 +02:00
2020-11-22 14:39:48 +01:00
2020-11-22 14:39:48 +01:00
2023-06-01 18:20:19 +02:00
2022-06-16 18:43:28 +02:00
2023-06-01 18:20:19 +02:00
2022-06-16 18:43:28 +02:00
2021-01-07 23:53:31 +01:00
2023-06-01 18:20:19 +02:00