mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -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"
|
defaultValue="homebrew"
|
||||||
groupId="install"
|
groupId="install"
|
||||||
values={[
|
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">
|
<TabItem value="manual">
|
||||||
|
|
||||||
Install the latest version for your system by running the following command:
|
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
|
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value="homebrew">
|
||||||
|
|
||||||
|
<InstallHomebrew />
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|
|
@ -166,7 +166,7 @@ detect_arch() {
|
||||||
|
|
||||||
|
|
||||||
detect_platform() {
|
detect_platform() {
|
||||||
platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
platform="$(uname -s | awk '{print tolower($0)}')"
|
||||||
|
|
||||||
case "${platform}" in
|
case "${platform}" in
|
||||||
linux) platform="linux" ;;
|
linux) platform="linux" ;;
|
||||||
|
|
Loading…
Reference in a new issue