Skip to content

fish #4488

Answered by gromgit
TwelveNight asked this question in Linux
fish #4488
May 7, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I try it follow the documents I just copy this

test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
test -r ~/.bash_profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bash_profile
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.profile

,but had no effect.

That just adds the necessary Homebrew configuration for Bourne-like shells (bash, zsh, etc.), not fish.

I also write this in my fish.config

if test -d (brew --prefix)"/share/fish/completions"
    set -gx fish_complete_path $fish_complete_path (brew --'prefix)/share/fish/completions
end

if test -d …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TwelveNight
Comment options

@gromgit
Comment options

Answer selected by TwelveNight
@TwelveNight
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
3 participants