oh-my-posh/website/docs/installation/linux.mdx

68 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-04-24 03:58:23 -07:00
---
id: linux
title: Linux
sidebar_label: 🐧 Linux
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
2022-04-20 09:43:59 -07:00
import InstallHomebrew from "./homebrew.mdx";
2021-04-24 03:58:23 -07:00
## Set up your terminal
2021-04-24 03:58:23 -07:00
Oh My Posh uses ANSI color codes under the hood, these should work in every terminal,
2021-04-24 03:58:23 -07:00
but you may have to set the environment variable `$TERM` to `xterm-256color` for it to work.
:::info
To display all icons, we recommend the use of a [Nerd Font][fonts].
:::
## Installation
<Tabs
defaultValue="homebrew"
groupId="install"
values={[
{ label: 'homebrew', value: 'homebrew', },
{ label: 'manual', value: 'manual', }
]
}>
<TabItem value="homebrew">
2021-11-25 23:51:29 -08:00
<InstallHomebrew />
</TabItem>
<TabItem value="manual">
Oh My Posh can also be installed manually by downloading the release.
Depending on your distro, this may or may not work (please refer to the homebrew installation
in case it doesn't work).
**Download Oh My Posh**
```bash
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
```
**Download the [themes][themes]**
```bash
mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip
```
</TabItem>
</Tabs>
2022-04-20 09:43:59 -07:00
[fonts]: /docs/configuration/fonts
2021-04-24 03:58:23 -07:00
[scoop]: https://scoop.sh/
[wt]: https://github.com/microsoft/terminal
[iterm2]: https://www.iterm2.com/
[powershell]: https://www.powershellgallery.com/packages/oh-my-posh
2022-04-20 09:43:59 -07:00
[configuration]: /docs/configuration/overview
[themes]: /docs/themes