newest version of dotfiles
This commit is contained in:
parent
9fcd3f7ef1
commit
eddf9cf3e3
5 changed files with 1 additions and 25 deletions
|
@ -1,10 +1,6 @@
|
||||||
shell = "zsh"
|
shell = "zsh"
|
||||||
|
|
||||||
# own files
|
# own files
|
||||||
[plugins.localenv]
|
|
||||||
local = "~/.local/share/zsh/config"
|
|
||||||
use = ["env.zsh"]
|
|
||||||
|
|
||||||
[plugins.compinit]
|
[plugins.compinit]
|
||||||
local = "~/.config/zsh/files/"
|
local = "~/.config/zsh/files/"
|
||||||
use = ["compinit.zsh"]
|
use = ["compinit.zsh"]
|
||||||
|
|
|
@ -39,7 +39,6 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
||||||
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||||
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
||||||
export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates
|
export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates
|
||||||
#export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH"
|
|
||||||
|
|
||||||
# other programs
|
# other programs
|
||||||
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
||||||
|
|
|
@ -18,5 +18,4 @@ for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json')
|
potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json')
|
||||||
export POSH_THEME="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]")"
|
||||||
eval "$(oh-my-posh init zsh)"
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/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
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/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