You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurred while redirecting file '/Users/yngve/.config/fish/completions/rustup.fish'
open: No such file or directory
Steps
brew install rustup-init
rustup-init
Add source $HOME/.cargo/env to ~/.config/fish/config.fish
rustup completions fish > ~/.config/fish/completions/rustup.fish
Possible Solution(s)
I fixed the issue by navigating into ~/.config/fish and then creating the completions directory:
➜ ~ cd .config/fish/
➜ fish mkdir completions
Then, I ran rustup completions fish > ~/.config/fish/completions/rustup.fish without problems.
My guess is that this problem is quite rare as most people using Fish have probably added the completions directory already. There are probably more elegant solutions, but I suggest adding a mkdir command to the documentation. I'll create a pull request to show what I mean.
Thanks for making Rust 😄
This is my first time trying it, and I discovered a tiny issue that might trip some people up.
Problem
When running the documented command to enable tab completions for Fish on macOS, I get:
Steps
brew install rustup-init
rustup-init
source $HOME/.cargo/env
to~/.config/fish/config.fish
rustup completions fish > ~/.config/fish/completions/rustup.fish
Possible Solution(s)
I fixed the issue by navigating into
~/.config/fish
and then creating thecompletions
directory:Then, I ran
rustup completions fish > ~/.config/fish/completions/rustup.fish
without problems.My guess is that this problem is quite rare as most people using Fish have probably added the
completions
directory already. There are probably more elegant solutions, but I suggest adding amkdir
command to the documentation. I'll create a pull request to show what I mean.Notes
Output of
rustup --version
:Output of
rustup show
:The text was updated successfully, but these errors were encountered: