diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f1ee49..54a0d2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - AI module: - Allow multiple suggestions - More default values + +### Changed + - Compile-time `_PR_LIB` changed to `_DEF_PR_LIB` to be explicit ## [0.6.3] 2024-12-11 diff --git a/README.md b/README.md index 8341bda..9fdc67f 100644 --- a/README.md +++ b/README.md @@ -208,9 +208,9 @@ An API key is included with the source. It should always work unless I can no lo > - `_DEF_PR_AI_URL` > - `_DEF_PR_AI_MODEL` > -> If the default values were not provided, pay-respects' own values will be used. Your request will be filtered to avoid abuse usages. Request will then be forwarded to a LLM provider that will not use your data for training. -> -> +> If default values were not provided, pay-respects' own values will be used. Your request will be filtered to avoid abuse usages. Request will then be forwarded to a LLM provider that will not use your data for training. + + ## Contributing diff --git a/core/src/system.rs b/core/src/system.rs index e33df33..0a506f0 100644 --- a/core/src/system.rs +++ b/core/src/system.rs @@ -167,7 +167,7 @@ pub fn get_packages( } false => { eprintln!("{} Unsupported package manager", ":pay-respects".yellow()); - return None; + None } }, } diff --git a/modules.md b/modules.md index ad2455e..cf53769 100644 --- a/modules.md +++ b/modules.md @@ -44,10 +44,13 @@ Expose your module as executable (`chmod u+x`) in `PATH`, and done! ## `LIB` directories -If exposing modules in `PATH` annoys you, you can set the `_PR_LIB` environment variable to specify directories to find the modules, separated by `:` (analogous to `PATH`). The variable can be set either runtime or compile-time. +If exposing modules in `PATH` annoys you, you can set the `_PR_LIB` environment variable to specify directories to find the modules, separated by `:` (analogous to `PATH`): Example in a [FHS 3.0 compliant system](https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html): ```shell +# compile-time +export _DEF_PR_LIB="/usr/lib:$HOME/.local/share" +# runtime export _PR_LIB="/usr/lib:$HOME/.local/share" ``` This is not the default as there is no general way to know its value and depends on distribution (`/usr/lib`, `/usr/libexec`, `/data/data/com.termux/files/usr/libexec`, etc.). System programs usually have a hard-coded path looking for `lib`. If you are a package maintainer for a distribution, setting this value when compiling, so it fits into your distribution standard.