Update .config/zsh/env.zsh

Update .config/zsh/rc.zsh
Update .config/zsh/zsh_plugins.txt
Add .local/bin/bofh
This commit is contained in:
eeleater 2022-12-15 12:32:11 +01:00
parent b9a71fee6b
commit 23bdb145e0
4 changed files with 18 additions and 17 deletions

View file

@ -71,6 +71,3 @@ export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep -i terminal: | awk '{p
export HISTSIZE=1048576 export HISTSIZE=1048576
export SAVEHIST=1048576 export SAVEHIST=1048576
export HISTFILE="$XDG_CACHE_HOME"/zsh/history export HISTFILE="$XDG_CACHE_HOME"/zsh/history
# local
test -f "$XDG_DATA_HOME"/zsh/env.zsh && source "$XDG_DATA_HOME"/zsh/env.zsh

View file

@ -3,11 +3,14 @@ if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-s
#fastfetch #fastfetch
bofh; echo " - BOFH" bofh; echo " - BOFH"
#source /usr/share/zsh/plugins/hq/hq.zsh #hackerquotes
#colorscript random #colorscript random
try_source () { test -r $1 && source $1 } try_source () { test -r $1 && source $1 }
# local env exports
try_source "$XDG_DATA_HOME"/zsh/env.zsh
# Powerlevel10k - instant prompt and config # Powerlevel10k - instant prompt and config
try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh
try_source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure try_source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure
@ -19,10 +22,14 @@ mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null
autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump
# antidote # antidote
source /usr/share/zsh-antidote/antidote.zsh try_source /usr/share/zsh-antidote/antidote.zsh
zstyle ':antidote:bundle' use-friendly-names 'yes' zstyle ':antidote:bundle' use-friendly-names 'yes'
antidote load antidote load
# other themes
#_evalcache starship init zsh
#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json
# eval stuff # eval stuff
_evalcache zoxide init zsh _evalcache zoxide init zsh
_evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS
@ -32,7 +39,7 @@ _evalcache direnv hook zsh
try_source /opt/asdf-vm/asdf.sh try_source /opt/asdf-vm/asdf.sh
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
# source seperate configs # seperate configs
try_source "$ZDOTDIR"/aliases.zsh try_source "$ZDOTDIR"/aliases.zsh
try_source "$ZDOTDIR"/keybinds.zsh try_source "$ZDOTDIR"/keybinds.zsh
try_source "$ZDOTDIR"/distroicon.zsh try_source "$ZDOTDIR"/distroicon.zsh

View file

@ -1,20 +1,14 @@
# .zsh_plugins.txt # oh my zsh
# autosuggestions
zsh-users/zsh-autosuggestions
## oh my zsh stuff
# libraries
ohmyzsh/ohmyzsh path:lib/history.zsh ohmyzsh/ohmyzsh path:lib/history.zsh
ohmyzsh/ohmyzsh path:lib/completion.zsh ohmyzsh/ohmyzsh path:lib/completion.zsh
ohmyzsh/ohmyzsh path:lib/directories.zsh ohmyzsh/ohmyzsh path:lib/directories.zsh
ohmyzsh/ohmyzsh path:lib/key-bindings.zsh ohmyzsh/ohmyzsh path:lib/key-bindings.zsh
# plugins
ohmyzsh/ohmyzsh path:plugins/systemd ohmyzsh/ohmyzsh path:plugins/systemd
ohmyzsh/ohmyzsh path:plugins/fzf ohmyzsh/ohmyzsh path:plugins/fzf
ohmyzsh/ohmyzsh path:plugins/command-not-found ohmyzsh/ohmyzsh path:plugins/command-not-found
# other plugins # other plugins
Aloxaf/fzf-tab
urbainvaes/fzf-marks urbainvaes/fzf-marks
mroth/evalcache mroth/evalcache
zpm-zsh/colorize zpm-zsh/colorize
@ -29,8 +23,7 @@ fdellwing/zsh-bat
# theme # theme
romkatv/powerlevel10k romkatv/powerlevel10k
#_evalcache starship init zsh
#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json
# syntaxhighlighting # fish like
zsh-users/zsh-autosuggestions
zsh-users/zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
excuses_file="/usr/share/doc/bofh/excuses"
num_lines=$(nl $excuses_file | tail -n 1 | awk '{print $1}')
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' $excuses_file