g9wp

Results 3 comments of g9wp

I wonder if there's a way to conditionally includes settings or variables to recipt like the [`cfg_attr`](https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute) in rust. ```just SH := "sh" [cfg_attr(unix, ``` set shell := ["bash", "-c"]...

> @g9wp This seems unrelated to the `[script]` attribute. This is a more general solution, `[script]` is just equivalent to `[cfg_attr(true, set shell)]`.

This PR works well. Previously, the terminal would often freeze when I closed a tab or a window, but since applying this patch, it hasn't happened again.