diff --git a/dot_config/zsh/files/options.zsh b/dot_config/zsh/files/options.zsh new file mode 100644 index 0000000..a8477c6 --- /dev/null +++ b/dot_config/zsh/files/options.zsh @@ -0,0 +1,5 @@ +setopt NO_CLOBBER +setopt INTERACTIVE_COMMENTS +setopt HASH_EXECUTABLES_ONLY +setopt NUMERIC_GLOB_SORT +unsetopt FLOW_CONTROL diff --git a/dot_local/bin/installOhMyPosh.sh b/dot_local/bin/installOhMyPosh.sh new file mode 100755 index 0000000..42548c8 --- /dev/null +++ b/dot_local/bin/installOhMyPosh.sh @@ -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 +} diff --git a/dot_local/bin/updateOhMyPosh.sh b/dot_local/bin/updateOhMyPosh.sh new file mode 100755 index 0000000..e8366eb --- /dev/null +++ b/dot_local/bin/updateOhMyPosh.sh @@ -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" +}