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
|
|
|
|
2022-03-15 16:32:45 -07:00
|
|
|
## Set up your terminal
|
2021-04-24 03:58:23 -07:00
|
|
|
|
2021-06-05 10:27:33 -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.
|
|
|
|
|
2021-12-19 02:20:27 -08:00
|
|
|
:::info
|
|
|
|
To display all icons, we recommend the use of a [Nerd Font][fonts].
|
|
|
|
:::
|
|
|
|
|
2021-11-27 11:58:33 -08:00
|
|
|
## 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 />
|
2021-06-07 22:37:34 -07:00
|
|
|
|
2021-11-27 11:58:33 -08:00
|
|
|
</TabItem>
|
|
|
|
<TabItem value="manual">
|
|
|
|
|
2023-05-10 10:53:23 -07:00
|
|
|
Install the latest version for your system by running the following command:
|
2022-12-13 10:13:11 -08:00
|
|
|
|
2021-11-27 11:58:33 -08:00
|
|
|
```bash
|
2023-05-10 10:53:23 -07:00
|
|
|
curl -s https://ohmyposh.dev/install.sh | bash -s
|
2021-11-27 11:58:33 -08:00
|
|
|
```
|
|
|
|
|
2023-05-10 10:53:23 -07:00
|
|
|
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:
|
2021-11-27 11:58:33 -08:00
|
|
|
|
|
|
|
```bash
|
2023-05-10 10:53:23 -07:00
|
|
|
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
|
2021-11-27 11:58:33 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
</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
|
2021-12-19 02:20:27 -08:00
|
|
|
[themes]: /docs/themes
|