updated antidote from sheldon

This commit is contained in:
eeleater 2024-08-14 00:45:09 +02:00
parent 0ed285bef9
commit 863808c00d
5 changed files with 11 additions and 12 deletions

View file

@ -7,7 +7,7 @@ path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox
path+=("$HOME"/.local/bin) # local bin path+=("$HOME"/.local/bin) # local bin
# startup banner # startup banner
potentialBanner=('joke bofh' 'joke dad' 'fastfetch') # 'colorscript random' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq mimsc' potentialBanner=('joke bofh' 'joke dad' 'fastfetch')
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
# disable flowcontrol # disable flowcontrol
@ -30,13 +30,11 @@ source "$ZDOTDIR"/files/functions.zsh
source "$ZDOTDIR"/files/distroicon.zsh source "$ZDOTDIR"/files/distroicon.zsh
# completion files # completion files
source "$ZDOTDIR"/files/bashcomps.zsh
source "$ZDOTDIR"/files/sshcomp.zsh source "$ZDOTDIR"/files/sshcomp.zsh
source "$ZDOTDIR"/files/bashcomps.zsh
# local overrides # local overrides
for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
# theme # theme
#potentialTheme=('emodipt-extend') # 'kali' 'lambda' 'bubblesextra' 'illusi0n' 'nordtron' 'di4am0nd' 'atomic'
#eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")"
eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/emodipt-extend.omp.json")" eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/emodipt-extend.omp.json")"

View file

@ -1,7 +1,8 @@
# evalstuff # evalstuff
_evalcache fzf --zsh
_evalcache zoxide init --cmd cd zsh _evalcache zoxide init --cmd cd zsh
_evalcache atuin init zsh _evalcache atuin init zsh
_evalcache navi widget zsh _evalcache navi widget zsh
_evalcache direnv hook zsh _evalcache direnv hook zsh
#_evalcache ntfy shell-integration #_evalcache ntfy shell-integration
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" #eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"

View file

@ -4,9 +4,9 @@ pet_select () {
zle redisplay zle redisplay
} }
zle -N pet_select zle -N pet_select
bindkey '^l' pet_select bindkey '^s' pet_select
pet_add_prev () { prev () {
PREV=$(fc -lrn | head -n 1) PREV=$(fc -lrn | head -n 1)
sh -c "pet new $(printf %q "$PREV")" sh -c "pet new $(printf %q "$PREV")"
} }

View file

@ -6,10 +6,10 @@ case "$1" in
echo "Daily Dad Joke: $joke" echo "Daily Dad Joke: $joke"
;; ;;
"bofh") "bofh")
excuses_file="$HOME/.local/share/bofh" file="$HOME/.local/share/bofh"
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}') lines=$(nl "$file" | tail -n 1 | awk '{print $1}')
echo -n "Daily BOFH Excuse: " echo -n "Daily BOFH Excuse: "
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" awk 'NR=='$((1 + RANDOM % lines ))'{print;exit}' "$file"
;; ;;
"hq") "hq")
file="$HOME/.local/share/hackerquotes/$2" file="$HOME/.local/share/hackerquotes/$2"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name')"
localVersion="$(oh-my-posh --version)" localVersion="v$(oh-my-posh --version)"
tmpFile="$(mktemp -u)" tmpFile="$(mktemp -u)"
test "$newestVersion" != "$localVersion" && { test "$newestVersion" != "$localVersion" && {