Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 5, 2024
1 parent 0c96fce commit b7e3803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions docs/cli/activate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@

Initializes mise in the current shell session

This should go into your shell's rc file.
This should go into your shell's rc file or login shell.
Otherwise, it will only take effect in the current session.
(e.g. ~/.zshrc, ~/.bashrc)

This is only intended to be used in interactive sessions, not scripts.
mise is only capable of updating PATH when the prompt is displayed to the user.
For non-interactive use-cases, use shims instead.
(e.g. ~/.zshrc, ~/.zprofile, ~/.bashrc, ~/.bash_profile, ~/.profile, ~/.config/fish/config.fish)

Typically this can be added with something like the following:

echo 'eval "$(mise activate)"' >> ~/.zshrc
echo 'eval "$(mise activate)"' >> ~/.zprofile

However, this requires that "mise" is in your PATH. If it is not, you need to
specify the full path like this:
Expand Down
10 changes: 3 additions & 7 deletions mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,13 @@ arg "[TASK_ARGS]..." help="Task arguments" var=true hide=true
cmd "activate" help="Initializes mise in the current shell session" {
long_help r#"Initializes mise in the current shell session

This should go into your shell's rc file.
This should go into your shell's rc file or login shell.
Otherwise, it will only take effect in the current session.
(e.g. ~/.zshrc, ~/.bashrc)

This is only intended to be used in interactive sessions, not scripts.
mise is only capable of updating PATH when the prompt is displayed to the user.
For non-interactive use-cases, use shims instead.
(e.g. ~/.zshrc, ~/.zprofile, ~/.bashrc, ~/.bash_profile, ~/.profile, ~/.config/fish/config.fish)

Typically this can be added with something like the following:

echo 'eval "$(mise activate)"' >> ~/.zshrc
echo 'eval "$(mise activate)"' >> ~/.zprofile

However, this requires that "mise" is in your PATH. If it is not, you need to
specify the full path like this:
Expand Down

0 comments on commit b7e3803

Please sign in to comment.