Skip to content

Commit

Permalink
Fix some doc/warning typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Feb 11, 2024
1 parent 541be14 commit 828ad61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased] - [ReleaseDate]

### Changed

- Fix some typos in docs and warning messages (oops)

## [1.1.1] - 2024-02-11

### Changed
Expand Down
6 changes: 3 additions & 3 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ Here's how you install it:
### Bash

```sh
echo "source <(es init --shell bash)" >> ~/.bashrc
echo 'eval "$(es --shell bash init)"' >> ~/.bashrc
```

### Zsh

```sh
echo "source <(es init --shell zsh)" >> ~/.zshrc
echo "source <(es --shell zsh init)" >> ~/.zshrc
```

### Fish

```sh
echo "es init --shell fish | source" >> ~/.config/fish/config.fish
echo "es --shell fish init | source" >> ~/.config/fish/config.fish
```
2 changes: 1 addition & 1 deletion src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl SubcommandTrait for InitCommand {
.shell
.init_script()
.context("Error generating shell init script")?;
println!("{script}");
print!("{script}");
Ok(())
}
}
4 changes: 2 additions & 2 deletions src/commands/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ impl SubcommandTrait for SetCommand {
// We were *not* called from the shell wrapper here, so just print
// the output and let the user know about a pro tip
print!("{source_output}");
// TODO update message/link
print_hint(&format!(
"Add `es` wrapping shell function to apply to env-select automatically on shell startup: \
"This output must be piped to `source` to be applied. \
Install the `es` shell function to apply automatically: \
{WEBSITE}/book/install.html#install-shell-function",
))?;
}
Expand Down

0 comments on commit 828ad61

Please sign in to comment.