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

63 lines
1.4 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";
2022-08-14 10:58:54 -07:00
import Next from "./next.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: 'manual', value: 'manual', },
{ label: 'homebrew', value: 'homebrew', }
]
}>
<TabItem value="manual">
Install the latest version for your system by running the following command:
```bash
curl -s https://ohmyposh.dev/install.sh | bash -s
```
By default the script will install to `/usr/local/bin` or the existing Oh My Posh executable's installation folder.
If you want to install to a different location you can specify it using the `-d` flag:
```bash
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
```
</TabItem>
<TabItem value="homebrew">
<InstallHomebrew />
</TabItem>
</Tabs>
2022-08-14 10:58:54 -07:00
<Next />
2022-06-03 07:47:56 -07:00
[fonts]: /docs/installation/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