oh-my-posh is now installed to .local/bin everywhere
This commit is contained in:
parent
a962ecfd40
commit
9fcd3f7ef1
3 changed files with 23 additions and 0 deletions
5
dot_config/zsh/files/options.zsh
Normal file
5
dot_config/zsh/files/options.zsh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
setopt NO_CLOBBER
|
||||||
|
setopt INTERACTIVE_COMMENTS
|
||||||
|
setopt HASH_EXECUTABLES_ONLY
|
||||||
|
setopt NUMERIC_GLOB_SORT
|
||||||
|
unsetopt FLOW_CONTROL
|
9
dot_local/bin/installOhMyPosh.sh
Executable file
9
dot_local/bin/installOhMyPosh.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)"
|
||||||
|
localVersion="$(oh-my-posh --version)"
|
||||||
|
tmpFile="$(mktemp -u)"
|
||||||
|
|
||||||
|
test "$newestVersion" != "$localVersion" && {
|
||||||
|
curl -so "$tmpFile" https://ohmyposh.dev/install.sh
|
||||||
|
bash "$tmpFile" -d "$HOME"/.local/bin
|
||||||
|
}
|
9
dot_local/bin/updateOhMyPosh.sh
Executable file
9
dot_local/bin/updateOhMyPosh.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)"
|
||||||
|
localVersion="$(oh-my-posh --version)"
|
||||||
|
tmpFile="$(mktemp -u)"
|
||||||
|
|
||||||
|
test "$newestVersion" != "$localVersion" && {
|
||||||
|
curl -so "$tmpFile" https://ohmyposh.dev/install.sh
|
||||||
|
bash "$tmpFile"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue