mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 04:38:00 -08:00
chore: update install script for platform detection
This commit is contained in:
parent
a12344b3cf
commit
50fc40a5fe
|
@ -24,15 +24,10 @@ To display all icons, we recommend the use of a [Nerd Font][fonts].
|
|||
defaultValue="homebrew"
|
||||
groupId="install"
|
||||
values={[
|
||||
{ label: 'homebrew', value: 'homebrew', },
|
||||
{ label: 'manual', value: 'manual', }
|
||||
{ label: 'manual', value: 'manual', },
|
||||
{ label: 'homebrew', value: 'homebrew', }
|
||||
]
|
||||
}>
|
||||
<TabItem value="homebrew">
|
||||
|
||||
<InstallHomebrew />
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="manual">
|
||||
|
||||
Install the latest version for your system by running the following command:
|
||||
|
@ -48,6 +43,11 @@ If you want to install to a different location you can specify it using the `-d`
|
|||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="homebrew">
|
||||
|
||||
<InstallHomebrew />
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ detect_arch() {
|
|||
|
||||
|
||||
detect_platform() {
|
||||
platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
||||
platform="$(uname -s | awk '{print tolower($0)}')"
|
||||
|
||||
case "${platform}" in
|
||||
linux) platform="linux" ;;
|
||||
|
|
Loading…
Reference in a new issue