website/docs/installation/macos.mdx
import InstallHomebrew from "./homebrew.md"; import Next from "./next.md"; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem";
As the standard terminal only supports 256 colors, we advise using iTerm2 or any other modern day macOS terminal that supports ANSI characters.
:::info To display all icons, we recommend the use of a Nerd Font. :::
<Tabs defaultValue="homebrew" groupId="install" values={[ { label: 'Homebrew', value: 'homebrew', }, { label: 'MacPorts', value: 'macports', } ] }> <TabItem value="homebrew">
<InstallHomebrew /> </TabItem> <TabItem value="macports">You can install Oh My Posh via MacPorts which is maintained by the community.
sudo port selfupdate
sudo port install oh-my-posh
Oh My Posh will be installed at /opt/local/bin/oh-my-posh.
Updating is done via:
sudo port selfupdate
sudo port upgrade oh-my-posh
More details on the ports page for Oh My Posh.
</TabItem> </Tabs>:::tip If you see an error that says, "conditional binary operator expected" you probably need to update to a newer version of bash.
brew install bash
grep -qxF "$(brew --prefix)/bin/bash" /etc/shells || sudo bash -c 'echo "$(brew --prefix)/bin/bash" >> /etc/shells'
chsh -s "$(brew --prefix)/bin/bash" $USER
:::
<Next />