diff options
author | Julian Antonielli <julianantonielli@gmail.com> | 2022-12-27 13:59:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 14:59:40 +0100 |
commit | 19fdf9bba59f6ae5a756b81d221a9dc3185208f5 (patch) | |
tree | e23996b773912bd6816b192eaa9d5a2a43d3518b /src/configs | |
parent | 9093891acbe2c86b1615c37386dadbb0cc632199 (diff) |
feat(nix): support new `nix shell` command (#4724)
* Support `nix shell`
* Remove unnecessary `Debug` implementation
* Add test to detect false positive
* Improve detection of `/nix/store` in $PATH
* Add docs about unknown state
* Gate under `heuristic` flag
* Regenerate config schema
Diffstat (limited to 'src/configs')
-rwxr-xr-x[-rw-r--r--] | src/configs/nix_shell.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configs/nix_shell.rs b/src/configs/nix_shell.rs index 0a676aeb7..be787a8fa 100644..100755 --- a/src/configs/nix_shell.rs +++ b/src/configs/nix_shell.rs @@ -13,7 +13,9 @@ pub struct NixShellConfig<'a> { pub style: &'a str, pub impure_msg: &'a str, pub pure_msg: &'a str, + pub unknown_msg: &'a str, pub disabled: bool, + pub heuristic: bool, } /* The trailing double spaces in `symbol` are needed to work around issues with @@ -27,7 +29,9 @@ impl<'a> Default for NixShellConfig<'a> { style: "bold blue", impure_msg: "impure", pure_msg: "pure", + unknown_msg: "", disabled: false, + heuristic: false, } } } |