mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore: adjust docs layout
This commit is contained in:
parent
5c2f1353c1
commit
e60daec9a5
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: configure
|
id: configure
|
||||||
title: Configuration
|
title: Configuration
|
||||||
sidebar_label: Configuration
|
sidebar_label: ⚙️ Configuration
|
||||||
---
|
---
|
||||||
|
|
||||||
Oh my Posh renders your prompt based on the definition of _blocks_ (like Lego) which contain or more _segments_.
|
Oh my Posh renders your prompt based on the definition of _blocks_ (like Lego) which contain or more _segments_.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: installation
|
id: installation
|
||||||
title: Installation
|
title: Installation
|
||||||
sidebar_label: Installation
|
sidebar_label: 🚀 Installation
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from "@theme/Tabs";
|
import Tabs from "@theme/Tabs";
|
||||||
|
@ -203,7 +203,7 @@ for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $fi
|
||||||
|
|
||||||
If you have no idea which shell you're currently using, Oh my Posh has a utility switch that will you tell you.
|
If you have no idea which shell you're currently using, Oh my Posh has a utility switch that will you tell you.
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
oh-my-posh --print-shell
|
oh-my-posh --print-shell
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -237,13 +237,13 @@ Once added, reload your profile for the changes to take effect.
|
||||||
|
|
||||||
Add the following to `~/.zshrc`:
|
Add the following to `~/.zshrc`:
|
||||||
|
|
||||||
```zshrc
|
```bash
|
||||||
eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/jandedobbeleer.omp.json)"
|
eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/jandedobbeleer.omp.json)"
|
||||||
```
|
```
|
||||||
|
|
||||||
Once added, reload your profile for the changes to take effect.
|
Once added, reload your profile for the changes to take effect.
|
||||||
|
|
||||||
```zsh
|
```bash
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ source ~/.zshrc
|
||||||
|
|
||||||
Add the following to `~/.bashrc` (or `~/.profile` on MacOS):
|
Add the following to `~/.bashrc` (or `~/.profile` on MacOS):
|
||||||
|
|
||||||
```bashrc
|
```bash
|
||||||
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
|
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -273,13 +273,13 @@ Or, when using `~/.profile`.
|
||||||
|
|
||||||
Redefine `fish_prompt` in `~/.config/fish/config.fish`:
|
Redefine `fish_prompt` in `~/.config/fish/config.fish`:
|
||||||
|
|
||||||
```fish
|
```bash
|
||||||
oh-my-posh --init --shell fish --config ~/.poshthemes/jandedobbeleer.omp.json | source
|
oh-my-posh --init --shell fish --config ~/.poshthemes/jandedobbeleer.omp.json | source
|
||||||
```
|
```
|
||||||
|
|
||||||
Once added, reload your config for the changes to take effect.
|
Once added, reload your config for the changes to take effect.
|
||||||
|
|
||||||
```fish
|
```bash
|
||||||
. ~/.config/fish/config.fish
|
. ~/.config/fish/config.fish
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: introduction
|
id: introduction
|
||||||
title: Introduction
|
title: Introduction
|
||||||
sidebar_label: Introduction
|
sidebar_label: 👋 Introduction
|
||||||
slug: /
|
slug: /
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: themes
|
id: themes
|
||||||
title: Themes
|
title: Themes
|
||||||
sidebar_label: Themes
|
sidebar_label: 🎨 Themes
|
||||||
---
|
---
|
||||||
|
|
||||||
### [Agnoster]
|
### [Agnoster]
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
---
|
---
|
||||||
id: upgrading
|
id: upgrading
|
||||||
title: Upgrading
|
title: Upgrading
|
||||||
sidebar_label: Upgrading from V2
|
sidebar_label: 🤘 Upgrading from V2
|
||||||
---
|
---
|
||||||
|
|
||||||
Just like V2, V3 is available in the [PowerShell gallery][psgallery]. Due to its nature, it's only
|
Just like V2, V3 is available in the [PowerShell gallery][psgallery]. Due to its nature, it's only
|
||||||
available as a prerelease while we work out the kinks and get it on par with V2.
|
available as a prerelease while we work out the kinks and get it on par with V2.
|
||||||
|
|
||||||
:::info Powershell 5
|
|
||||||
Due to being unable to maintain everything, the decision was made to drop active support for non-cross platform
|
|
||||||
tooling. That's why V3 will only work as of Powershell 6 when it comes to the module.
|
|
||||||
If you want to install this for Powershell 5 (and below), feel free to look at the [manual installation][manual] process
|
|
||||||
which should get you up and running in no time.
|
|
||||||
:::
|
|
||||||
|
|
||||||
## V2's problem statement
|
## V2's problem statement
|
||||||
|
|
||||||
V2 has Powershell module files as [themes][themesv2]. That way of working was inspired from [oh-my-zsh][omz] and other
|
V2 has Powershell module files as [themes][themesv2]. That way of working was inspired from [oh-my-zsh][omz] and other
|
||||||
|
|
|
@ -10,8 +10,8 @@ module.exports = {
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
sidebarCollapsible: false,
|
sidebarCollapsible: false,
|
||||||
prism: {
|
prism: {
|
||||||
theme: require("prism-react-renderer/themes/github"),
|
theme: require("prism-react-renderer/themes/duotoneLight"),
|
||||||
darkTheme: require("prism-react-renderer/themes/dracula"),
|
darkTheme: require("prism-react-renderer/themes/oceanicNext"),
|
||||||
},
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
title: "Oh my Posh",
|
title: "Oh my Posh",
|
||||||
|
|
Loading…
Reference in a new issue