updated files in antidote

This commit is contained in:
eeleater 2022-12-13 18:00:50 +01:00
parent 9299a47cf6
commit ab070423c4
3 changed files with 19 additions and 84 deletions

View file

@ -6,9 +6,11 @@ bofh; echo " - BOFH"
#source /usr/share/zsh/plugins/hq/hq.zsh #source /usr/share/zsh/plugins/hq/hq.zsh
#colorscript random #colorscript random
try_source () { test -r $1 && source $1 }
# Powerlevel10k - instant prompt and config # Powerlevel10k - instant prompt and config
test -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" && source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh
test -f "$XDG_CONFIG_HOME"/zsh/.p10k.zsh && source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure try_source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure
# ensure zsh cache folder exists # ensure zsh cache folder exists
mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null
@ -16,47 +18,10 @@ mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null
# compinit # compinit
autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump
# autosuggestions # antidote
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh-antidote/antidote.zsh
zstyle ':antidote:bundle' use-friendly-names 'yes'
# history antidote load
setopt inc_append_history
# libraries
source /usr/share/ohmyzsh/lib/history.zsh
source /usr/share/ohmyzsh/lib/completion.zsh
source /usr/share/ohmyzsh/lib/directories.zsh
source /usr/share/ohmyzsh/lib/key-bindings.zsh
# plugins (omz)
source /usr/share/ohmyzsh/plugins/systemd/systemd.plugin.zsh
source /usr/share/ohmyzsh/plugins/fzf/fzf.plugin.zsh
# plugins (arch)
source /usr/share/doc/find-the-command/ftc.zsh
source /usr/share/zsh/plugins/fzf-tab/fzf-tab.zsh
source /usr/share/zsh/plugins/fzf-marks/fzf-marks.zsh
source /usr/share/zsh/plugins/evalcache/evalcache.zsh
source /usr/share/zsh/plugins/colorize/colorize.zsh
source /usr/share/zsh/plugins/wakatime/wakatime.zsh
source /usr/share/zsh/plugins/titles/titles.zsh
source /usr/share/zsh/plugins/thefuck/thefuck.zsh
source /usr/share/zsh/plugins/ysu/ysu.zsh
source /usr/share/zsh/plugins/oath/oath.zsh
source /usr/share/zsh/plugins/exa/exa.zsh
source /usr/share/zsh/plugins/bat/bat.zsh
# plugins (self)
source /home/weger/.config/zsh/distroicon.zsh
source /home/weger/.config/zsh/transfer.zsh
#themes
source /usr/share/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
#_evalcache starship init zsh
#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json
# syntax highlighting
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# eval stuff # eval stuff
_evalcache zoxide init zsh _evalcache zoxide init zsh
@ -64,49 +29,15 @@ _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS
_evalcache atuin init zsh _evalcache atuin init zsh
_evalcache navi widget zsh _evalcache navi widget zsh
_evalcache direnv hook zsh _evalcache direnv hook zsh
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)"
# aliases # source seperate configs
alias cd='z' try_source "$ZDOTDIR"/aliases.zsh
alias grep='rg' try_source "$ZDOTDIR"/keybinds.zsh
alias find='fd' try_source "$ZDOTDIR"/distroicon.zsh
try_source "$ZDOTDIR"/transfer.zsh
# make rm, cp and mv safer # ssh ignored patterns
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# misc aliases
alias termbin="nc termbin.com 9999"
alias ktheme='kitty +kitten themes --reload-in=all'
alias wget='wget --hsts-file="$XDG_DATA_HOME"/wget-hsts'
if (( ${+commands[nvim]} )); then alias vim="nvim"; fi
# gdb stuff
alias peda="gdb -iex 'source /usr/share/peda/peda.py' --nh -q"
alias gef="gdb -iex 'source /usr/share/gef/gef.py' --nh -q"
alias pwndbg="gdb -iex 'source /usr/share/pwndbg/gdbinit.py' --nh -q"
# key bindings
run_ranger () { echo; ranger < $TTY; zle redisplay }
zle -N run_ranger
bindkey '^f' run_ranger
pet_select () { BUFFER=$(pet search --query "$LBUFFER"); CURSOR=$#BUFFER; zle redisplay }
zle -N pet_select
bindkey '^l' pet_select
# use known_hosts for completion
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
# order stuff
zstyle ':completion:*:(scp|ssh):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
zstyle ':completion:*:scp:*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
# ignored patterns
zstyle ':completion:*:*:*:users' ignored-patterns '*' zstyle ':completion:*:*:*:users' ignored-patterns '*'
zstyle ':completion:*:*:*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost localhost4 localhost6 ip6-localhost broadcasthost
zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de' zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de'
zstyle ':completion:*:*:*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'

View file

@ -0,0 +1 @@

View file

@ -18,6 +18,7 @@ ohmyzsh/ohmyzsh path:plugins/command-not-found
urbainvaes/fzf-marks urbainvaes/fzf-marks
mroth/evalcache mroth/evalcache
zpm-zsh/colorize zpm-zsh/colorize
zpm-zsh/ssh
sobolevn/wakatime-zsh-plugin sobolevn/wakatime-zsh-plugin
amyreese/zsh-titles amyreese/zsh-titles
laggardkernel/zsh-thefuck laggardkernel/zsh-thefuck
@ -28,6 +29,8 @@ 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 # syntaxhighlighting
zsh-users/zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting