use sheldon
This commit is contained in:
parent
7e33d7c962
commit
09118f860f
2 changed files with 19 additions and 21 deletions
|
@ -1,9 +1,18 @@
|
||||||
shell = "zsh"
|
shell = "zsh"
|
||||||
|
|
||||||
[templates]
|
[templates]
|
||||||
defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}"
|
defer = """{% for file in files %}
|
||||||
defer-more = "{% for file in files %}zsh-defer -t 0.5 source \"{{ file }}\"\n{% endfor %}"
|
zsh-defer source "{{ file }}"
|
||||||
|
{% endfor %}"""
|
||||||
|
|
||||||
|
defer-more = """{% for file in files %}
|
||||||
|
zsh-defer -t 0.5 source "{{ file }}"
|
||||||
|
{% endfor %}"""
|
||||||
|
|
||||||
|
# own files
|
||||||
|
[plugins.ownfiles]
|
||||||
|
local = "~/.config/zsh/"
|
||||||
|
use = ["{env,.p10k}.zsh"]
|
||||||
|
|
||||||
[plugins.zsh-defer]
|
[plugins.zsh-defer]
|
||||||
github = "romkatv/zsh-defer"
|
github = "romkatv/zsh-defer"
|
||||||
|
@ -74,3 +83,7 @@ github = "romkatv/powerlevel10k"
|
||||||
[plugins.own-files]
|
[plugins.own-files]
|
||||||
local = "~/.config/zsh/"
|
local = "~/.config/zsh/"
|
||||||
use = ["{aliases,keybinds,distroicon,transfer}.zsh"]
|
use = ["{aliases,keybinds,distroicon,transfer}.zsh"]
|
||||||
|
|
||||||
|
[plugins.asdf]
|
||||||
|
local = "/opt/asdf-vm"
|
||||||
|
use = ["asdf.sh"]
|
||||||
|
|
|
@ -6,14 +6,8 @@ bofh; echo " - BOFH"
|
||||||
#hackerquotes
|
#hackerquotes
|
||||||
#colorscript random
|
#colorscript random
|
||||||
|
|
||||||
try_source () { test -r $1 && source $1 }
|
# powerlevel10k instant prompt
|
||||||
|
() { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh
|
||||||
# local env exports
|
|
||||||
try_source "$XDG_DATA_HOME"/zsh/env.zsh
|
|
||||||
|
|
||||||
# Powerlevel10k - instant prompt and config
|
|
||||||
try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh
|
|
||||||
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
|
||||||
|
@ -21,10 +15,8 @@ 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
|
||||||
|
|
||||||
# antidote
|
# source from sheldon
|
||||||
try_source /usr/share/zsh-antidote/antidote.zsh
|
eval "$(sheldon source)"
|
||||||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
|
||||||
antidote load
|
|
||||||
|
|
||||||
# other themes
|
# other themes
|
||||||
#_evalcache starship init zsh
|
#_evalcache starship init zsh
|
||||||
|
@ -36,15 +28,8 @@ _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
|
||||||
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)"
|
||||||
|
|
||||||
# seperate configs
|
|
||||||
try_source "$ZDOTDIR"/aliases.zsh
|
|
||||||
try_source "$ZDOTDIR"/keybinds.zsh
|
|
||||||
try_source "$ZDOTDIR"/distroicon.zsh
|
|
||||||
try_source "$ZDOTDIR"/transfer.zsh
|
|
||||||
|
|
||||||
# ssh ignored patterns
|
# ssh ignored patterns
|
||||||
zstyle ':completion:*:*:*:users' ignored-patterns '*'
|
zstyle ':completion:*:*:*:users' ignored-patterns '*'
|
||||||
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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue