So the problem looks like that : I followed all the instructions from https://docs.brew.sh/Homebrew-on-Linux , to install oh my posh via brew.
The problem is that I think I putted a wrong path while copy pasting the instruction's code here :
The installation script installs Homebrew to /home/linuxbrew/.linuxbrew using sudo if possible and within your home directory at ~/.linuxbrew otherwise. Homebrew does not use sudo after installation. Using /home/linuxbrew/.linuxbrew allows the use of more binary packages (bottles) than installing in your personal home directory. The prefix /home/linuxbrew/.linuxbrew was chosen so that users without admin access can ask an admin to create a linuxbrew role account and still benefit from precompiled binaries. If you do not yourself have admin privileges, consider asking your admin staff to create a linuxbrew role account for you with home directory set to /home/linuxbrew.
Follow the Next steps instructions to add Homebrew to your PATH and to your bash shell profile script, either ~/.profile on Debian/Ubuntu or ~/.bash_profile on CentOS/Fedora/Red Hat.
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
And when i copy paste this piece of code it works on the actual terminal, but when i close the terminal and open again or open an other tab, and try the command "brew" again for example, it says
zsh: command not found: brew
so for sure I messed up with some path directions. I am not so good in linux, lets say maybe a junior intermediate level, but for this I am stuck, any help would be appreciated thanks
brew
got installed to and use/the/full/path/to/brew
or to add thebrew
directory toPATH
– thrig Aug 16 '22 at 20:21brew
is probably underbin
in one or the other of those installation directories, assuming those instructions were followed and the documentation is correct. – thrig Aug 17 '22 at 13:13