updated antidote from sheldon
This commit is contained in:
parent
0ed285bef9
commit
863808c00d
5 changed files with 11 additions and 12 deletions
|
@ -7,7 +7,7 @@ path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox
|
|||
path+=("$HOME"/.local/bin) # local bin
|
||||
|
||||
# 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]"
|
||||
|
||||
# disable flowcontrol
|
||||
|
@ -30,13 +30,11 @@ source "$ZDOTDIR"/files/functions.zsh
|
|||
source "$ZDOTDIR"/files/distroicon.zsh
|
||||
|
||||
# completion files
|
||||
source "$ZDOTDIR"/files/bashcomps.zsh
|
||||
source "$ZDOTDIR"/files/sshcomp.zsh
|
||||
source "$ZDOTDIR"/files/bashcomps.zsh
|
||||
|
||||
# local overrides
|
||||
for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
|
||||
|
||||
# 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")"
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# evalstuff
|
||||
_evalcache fzf --zsh
|
||||
_evalcache zoxide init --cmd cd zsh
|
||||
_evalcache atuin init zsh
|
||||
_evalcache navi widget zsh
|
||||
_evalcache direnv hook zsh
|
||||
#_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)"
|
||||
|
|
|
@ -4,9 +4,9 @@ pet_select () {
|
|||
zle redisplay
|
||||
}
|
||||
zle -N pet_select
|
||||
bindkey '^l' pet_select
|
||||
bindkey '^s' pet_select
|
||||
|
||||
pet_add_prev () {
|
||||
prev () {
|
||||
PREV=$(fc -lrn | head -n 1)
|
||||
sh -c "pet new $(printf %q "$PREV")"
|
||||
}
|
||||
|
|
|
@ -6,10 +6,10 @@ case "$1" in
|
|||
echo "Daily Dad Joke: $joke"
|
||||
;;
|
||||
"bofh")
|
||||
excuses_file="$HOME/.local/share/bofh"
|
||||
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
|
||||
file="$HOME/.local/share/bofh"
|
||||
lines=$(nl "$file" | tail -n 1 | awk '{print $1}')
|
||||
echo -n "Daily BOFH Excuse: "
|
||||
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"
|
||||
awk 'NR=='$((1 + RANDOM % lines ))'{print;exit}' "$file"
|
||||
;;
|
||||
"hq")
|
||||
file="$HOME/.local/share/hackerquotes/$2"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/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)"
|
||||
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name')"
|
||||
localVersion="v$(oh-my-posh --version)"
|
||||
tmpFile="$(mktemp -u)"
|
||||
|
||||
test "$newestVersion" != "$localVersion" && {
|
||||
|
|
Loading…
Add table
Reference in a new issue