:warning: Behavior on bash/fish was not thoroughly tested. If you encounter any issues please create an issue.
Install binary
bash
cargo install cdwe
Init your shell
bash
cdwe init zsh # zsh shells
cdwe init bash # bash shells
cdwe init fish # fish shells
Reload your shell and start using! ```bash
cdwe /Users/synoet/dev/projecta echo $IS_DEBUG
cdwe .. echo $IS_DEBUG ```
```toml [[directory]] path = "/Users/synoet/dev/something" # the path to the directory vars = {"ISDEBUG" = "true", "ISPROD" = "false"} # set environment variables load_from = [".env", ".env.local"] # will source environment variables from these files
[[directory]] path = "/Users/synoet/dev" # the path to the directory load_from = [".env"] # will source environment variables from these files ```
cd_command
in the config section of the ~/cdwe.toml
.
```toml
[config]
cd_command = "z" # if you are using zoxide```
cdwe-reload
```bash
cdwe-reload # reloads your configzsh #reload your shell, use bash or fish if you use those.
```
bash
cdwe-remove #removes the
source zsh #reload your shell, use bash or fish if you use those. ```
bash
cargo uninstall cdwe