-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67466f6
commit 047fd52
Showing
2 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Configuration | ||
`stew` can be configured with a `stew.config.json` file. The location of this file will depend on your OS: | ||
|Linux/macOS | Windows | | ||
| ------------ | ---------- | | ||
| `$XDG_CONFIG_HOME/stew` or `~/.config/stew` | `~/AppData/Local/stew/Config` | | ||
|
||
You can configure 2 aspects of `stew`: | ||
1. The `stewPath`: this is where `stew` data is stored. | ||
2. The `stewBinPath`: this is where `stew` installs binaries | ||
|
||
The default locations for these are: | ||
| | Linux/macOS | Windows | | ||
| ------------ | ------------ | ---------- | | ||
| `stewPath` | `$XDG_DATA_HOME/stew` or `~/.local/share/stew` | `~/AppData/Local/stew` | | ||
| `stewBinPath` | `~/.local/bin` | `~/AppData/Local/stew/bin` | | ||
|
||
There are multiple ways to configure these: | ||
* When first installing `stew`: | ||
* If you install with the [curl install script](https://github.com/marwanhawari/stew/blob/main/install.sh) you will be immediately prompted to set these. This will create a `stew.config.json` file. | ||
* If you install the `stew` binary itself (without the curl install script - i.e. with `brew` or by downloading it directly from the releases page), `stew` will look for a `stew.config.json` file. If it cannot find one, then you will be prompted to set the configuration values. | ||
|
||
* After `stew` is installed, you can use the `stew config` command to set the configuration values. | ||
* At any time, you can manually create or edit the `stew.config.json` file. It should have values for `stewPath` and `stewBinPath`. |