updated antidote to newest state
This commit is contained in:
parent
6d40f3fa63
commit
f7cb8e5949
20 changed files with 343 additions and 269 deletions
|
@ -1,8 +1,14 @@
|
|||
# oh my zsh
|
||||
ohmyzsh/ohmyzsh path:lib/history.zsh
|
||||
# completions
|
||||
zsh-users/zsh-completions
|
||||
|
||||
# lscolors
|
||||
trapd00r/LS_COLORS
|
||||
|
||||
# ohmyzsh
|
||||
ohmyzsh/ohmyzsh path:lib/completion.zsh
|
||||
ohmyzsh/ohmyzsh path:lib/directories.zsh
|
||||
ohmyzsh/ohmyzsh path:lib/key-bindings.zsh
|
||||
ohmyzsh/ohmyzsh path:lib/history.zsh
|
||||
ohmyzsh/ohmyzsh path:lib/directories.zsh
|
||||
ohmyzsh/ohmyzsh path:plugins/systemd
|
||||
ohmyzsh/ohmyzsh path:plugins/fzf
|
||||
ohmyzsh/ohmyzsh path:plugins/command-not-found
|
||||
|
@ -17,20 +23,15 @@ zpm-zsh/ssh
|
|||
sobolevn/wakatime-zsh-plugin
|
||||
amyreese/zsh-titles
|
||||
laggardkernel/zsh-thefuck
|
||||
MichaelAquilina/zsh-you-should-use
|
||||
alexdesousa/oath
|
||||
TwoPizza9621536/zsh-exa
|
||||
twopizza9621536/zsh-eza
|
||||
fdellwing/zsh-bat
|
||||
MichaelAquilina/zsh-you-should-use
|
||||
asdf-vm/asdf
|
||||
#Felixoid/zsh-hoco
|
||||
olets/zsh-abbr
|
||||
trapd00r/LS_COLORS
|
||||
|
||||
# theme
|
||||
romkatv/powerlevel10k
|
||||
|
||||
# stuff
|
||||
zsh-users/zsh-completions
|
||||
#romkatv/powerlevel10k
|
||||
|
||||
# fish like
|
||||
zsh-users/zsh-autosuggestions
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# path
|
||||
# deduplicate path and add local bin to path
|
||||
typeset -U path PATH
|
||||
export PATH="$HOME"/.local/bin:"$PATH"
|
||||
|
||||
# xdg stuff
|
||||
|
@ -27,6 +28,7 @@ export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
|
|||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||
export GDBHISTFILE="$XDG_CONFIG_HOME"/gdb/history
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
||||
|
||||
# data files
|
||||
export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons
|
||||
|
@ -43,10 +45,9 @@ export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates
|
|||
|
||||
# other programs
|
||||
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
||||
export EDITOR=vim
|
||||
export EDITOR=nvim
|
||||
#export VISUAL=kate
|
||||
export ZSH_WAKATIME_BIN=/usr/bin/wakatime
|
||||
export WAKATIME_DO_NOT_TRACK=1
|
||||
export PYTHONSTARTUP=/etc/python/pythonrc
|
||||
|
||||
# stuff
|
||||
|
@ -60,4 +61,5 @@ export HISTSIZE=$(( 1.2 * SAVEHIST ))
|
|||
export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh
|
||||
export HISTFILE="$ZSH_CACHE_DIR"/history
|
||||
export GPG_TTY="$TTY"
|
||||
export DIFFPROG='meld'
|
||||
export AUTO_NTFY_DONE_IGNORE="ntfy emacs htop info less mail man meld most mutt nano screen ssh tail tmux top vi vim watch bat cat kate topgrade"
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox
|
||||
if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty
|
||||
test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox
|
||||
test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty
|
||||
|
||||
# startup banner
|
||||
potentialBanner=('bofh; echo " - BOFH"' 'hackerquotes' 'fastfetch')#'colorscript random')
|
||||
potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq torvalds' 'joke hq misc' 'colorscript random' 'fastfetch')
|
||||
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
||||
|
||||
function source () { test -r "$1" && builtin source "$1" }
|
||||
|
||||
source "$XDG_CACHE_HOME"/p10k-instant-prompt-"$USERNAME".zsh
|
||||
|
||||
# local env exports
|
||||
source "$XDG_DATA_HOME"/zsh/env.zsh
|
||||
source "$XDG_DATA_HOME"/zsh/config/env.zsh
|
||||
|
||||
# completion stuff
|
||||
source "$ZDOTDIR"/files/compinit.zsh
|
||||
|
@ -31,6 +29,3 @@ source "$ZDOTDIR"/files/distroicon.zsh
|
|||
|
||||
# ssh ignored patterns
|
||||
source "$ZDOTDIR"/files/sshcomp.zsh
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit $ZDOTDIR/.p10k.zsh.
|
||||
source "$ZDOTDIR"/.p10k.zsh
|
||||
|
|
|
@ -2,13 +2,20 @@
|
|||
#_evalcache starship init zsh --print-full-init
|
||||
|
||||
# ohmyposh
|
||||
#potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json')
|
||||
#export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
||||
#eval "$(ohmyposh init zsh)"
|
||||
potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json')
|
||||
if (( ${+commands[brew]} )); then
|
||||
export POSH_THEME="$(brew --prefix oh-my-posh)/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
||||
elif test "$(cat /etc/os-release | grep '^ID=' | cut -d'=' -f2)" = "nixos"; then
|
||||
export POSH_THEME="/run/current-system/sw/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
||||
else
|
||||
export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
|
||||
fi
|
||||
eval "$(oh-my-posh init zsh)"
|
||||
|
||||
# evalstuff
|
||||
_evalcache zoxide init --cmd cd zsh
|
||||
_evalcache atuin init zsh
|
||||
#_evalcache navi widget zsh
|
||||
#_evalcache direnv hook zsh
|
||||
#eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
|
||||
_evalcache navi widget zsh
|
||||
_evalcache direnv hook zsh
|
||||
#_evalcache ntfy shell-integration
|
||||
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
|
||||
|
|
|
@ -6,6 +6,11 @@ pet_select () {
|
|||
zle -N pet_select
|
||||
bindkey '^l' pet_select
|
||||
|
||||
pet_add_prev () {
|
||||
PREV=$(fc -lrn | head -n 1)
|
||||
sh -c "pet new $(printf %q "$PREV")"
|
||||
}
|
||||
|
||||
run_ranger () {
|
||||
echo
|
||||
ranger < $TTY
|
||||
|
|
|
@ -11,5 +11,14 @@ zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-host' ignored-patterns
|
|||
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*.eeleater.org' '*.hbz-nrw.de'
|
||||
zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*'
|
||||
|
||||
#function knownhosts () { cat "$HOME"/.ssh/known_hosts | grep ',' | cut -d',' -f1 }
|
||||
#HOCO_FUNCTIONS=(knownhosts)
|
||||
[ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=()
|
||||
[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _global_ssh_hosts=()
|
||||
[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
|
||||
[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
|
||||
hosts=(
|
||||
# "$_ssh_config[@]"
|
||||
"$_global_ssh_hosts[@]"
|
||||
"$_ssh_hosts[@]"
|
||||
"$_etc_hosts[@]"
|
||||
)
|
||||
zstyle ':completion:*:hosts' hosts $hosts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue