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={[
|
2023-06-04 23:57:30 -07:00
|
|
|
{ label: 'manual', value: 'manual', },
|
|
|
|
{ label: 'homebrew', value: 'homebrew', }
|
2021-11-27 11:58:33 -08:00
|
|
|
]
|
|
|
|
}>
|
|
|
|
<TabItem value="manual">
|
|
|
|
|
2023-07-21 05:33:25 -07:00
|
|
|
:::info
|
|
|
|
Before running the below commands, make sure that you have updated `curl` and the
|
|
|
|
client certificate store on the target machine.
|
|
|
|
:::
|
|
|
|
|
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
|
|
|
```
|
|
|
|
|
2024-10-13 03:09:54 -07:00
|
|
|
By default the script will install to `~/bin` or `~/.local/bin` depending on which one exists,
|
2024-10-13 01:22:37 -07:00
|
|
|
or the existing Oh My Posh executable's installation folder.
|
2023-05-10 10:53:23 -07:00
|
|
|
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
|
|
|
```
|
|
|
|
|
2023-06-04 23:57:30 -07:00
|
|
|
</TabItem>
|
|
|
|
<TabItem value="homebrew">
|
|
|
|
|
2024-05-25 12:51:10 -07:00
|
|
|
:::warning
|
|
|
|
When installing Homebrew for Linux,
|
|
|
|
be sure to follow *[Next steps][nextsteps]* instructions to add Homebrew to your PATH and to your
|
|
|
|
bash shell profile script, and *[Requirements][requirements]* to build Oh My Posh.
|
|
|
|
:::
|
|
|
|
|
2023-06-04 23:57:30 -07:00
|
|
|
<InstallHomebrew />
|
|
|
|
|
2021-11-27 11:58:33 -08:00
|
|
|
</TabItem>
|
|
|
|
</Tabs>
|
|
|
|
|
2022-08-14 10:58:54 -07:00
|
|
|
<Next />
|
|
|
|
|
2024-05-25 12:51:10 -07:00
|
|
|
[requirements]: https://docs.brew.sh/Homebrew-on-Linux#requirements
|
|
|
|
[nextsteps]: https://docs.brew.sh/Homebrew-on-Linux#install
|
|
|
|
[fonts]: /docs/installation/fonts
|