stuff
This commit is contained in:
parent
94888758fd
commit
96d1c576a6
6 changed files with 20 additions and 54 deletions
38
zsh/rc.zsh
38
zsh/rc.zsh
|
@ -1,8 +1,7 @@
|
|||
export path=($path $HOME/.config/dotfiles/bin)
|
||||
export fpath=($fpath $ZDOTDIR/local/fpath)
|
||||
export FZF_MARKS_FILE="$HOME/.config/fzfmarks"
|
||||
export STARSHIP_CONFIG="$ZDOTDIR/starship.toml"
|
||||
export ZSH_CACHE_PATH="$HOME/.cache/zsh/compcache/"
|
||||
export FZF_MARKS_FILE=$HOME/.config/fzfmarks
|
||||
export STARSHIP_CONFIG=$ZDOTDIR/starship.toml
|
||||
|
||||
# Stuff
|
||||
setopt auto_cd
|
||||
|
@ -12,21 +11,15 @@ setopt auto_pushd
|
|||
setopt pushd_ignore_dups
|
||||
setopt pushdminus
|
||||
|
||||
mkdir -p $HOME/.cache/zsh
|
||||
|
||||
# Zinit Clone if not exist
|
||||
if [[ ! -f $HOME/.config/zinit/bin/zinit.zsh ]]; then
|
||||
command git clone https://github.com/zdharma/zinit $HOME/.config/zinit/bin
|
||||
fi
|
||||
[[ ! -f $HOME/.config/zinit/bin/zinit.zsh ]] && command git clone https://github.com/zdharma/zinit $HOME/.config/zinit/bin
|
||||
|
||||
# Zinit
|
||||
declare -A ZINIT
|
||||
ZINIT[BIN_DIR]="$HOME/.config/zinit/bin"
|
||||
ZINIT[HOME_DIR]="$HOME/.config/zinit"
|
||||
ZINIT[ZCOMPDUMP_PATH]="$HOME/.cache/zsh/compdump"
|
||||
|
||||
source $HOME/.config/zinit/bin/zinit.zsh
|
||||
autoload -U +X bashcompinit
|
||||
|
||||
# Theme
|
||||
eval "$(starship init zsh)"
|
||||
|
@ -41,11 +34,16 @@ zinit ice as"program" from"gh-r" mv"pet* -> pet" pick"usr/local/bin/pet"; zinit
|
|||
zinit ice wait lucid blockf atpull'zinit creinstall -q .'; zinit light zsh-users/zsh-completions
|
||||
zinit ice wait lucid atload"_zsh_autosuggest_start"; zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
# Needed
|
||||
# History Stuff
|
||||
SAVEHIST=20000
|
||||
HISTFILE=$HOME/.cache/zsh/history
|
||||
setopt inc_append_history
|
||||
|
||||
# Library Files
|
||||
source $ZDOTDIR/files/dircolor.zsh
|
||||
source $ZDOTDIR/files/aliases.zsh
|
||||
source $ZDOTDIR/files/history.zsh
|
||||
source $ZDOTDIR/files/direnv.zsh
|
||||
zinit snippet OMZL::history.zsh
|
||||
zinit snippet OMZL::functions.zsh
|
||||
zinit snippet OMZL::completion.zsh
|
||||
zinit snippet OMZL::directories.zsh
|
||||
|
@ -53,33 +51,31 @@ zinit snippet OMZL::key-bindings.zsh
|
|||
zinit snippet OMZL::termsupport.zsh
|
||||
zinit snippet OMZL::clipboard.zsh
|
||||
zinit snippet OMZL::grep.zsh
|
||||
zinit snippet OMZP::sudo
|
||||
zinit snippet OMZP::command-not-found
|
||||
zinit snippet OMZP::fzf
|
||||
zinit snippet OMZP::lando
|
||||
|
||||
# Completion Stuff
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*:*:*:users' ignored-patterns '*'
|
||||
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
|
||||
zstyle ':completion:*:(scp|rsync):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
|
||||
zstyle ':completion:*:(scp|rsync):*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr
|
||||
zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *'
|
||||
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
|
||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost localhost4 localhost6 ip6-localhost broadcasthost pxm
|
||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*sublime*' '*.local'
|
||||
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'
|
||||
|
||||
# Plugins
|
||||
eval "$(fasd --init auto)"
|
||||
zinit ice wait lucid; zinit snippet OMZP::command-not-found
|
||||
zinit ice wait lucid; zinit snippet OMZP::lando
|
||||
zinit ice wait lucid; zinit snippet OMZP::thefuck
|
||||
zinit ice wait lucid; zinit snippet OMZP::fzf
|
||||
zinit ice wait lucid; zinit light wookayin/fzf-fasd
|
||||
zinit ice wait lucid; zinit light urbainvaes/fzf-marks
|
||||
zinit ice wait lucid; zinit light Aloxaf/fzf-tab
|
||||
zinit ice wait lucid; zinit light voronkovich/gitignore.plugin.zsh
|
||||
zinit ice wait lucid; zinit light reegnz/jq-zsh-plugin
|
||||
zinit ice wait lucid; zinit light asdf-vm/asdf
|
||||
zinit ice wait lucid; zinit light Aloxaf/fzf-tab
|
||||
|
||||
# syntax highlighting
|
||||
zpcompinit
|
||||
autoload -U +X bashcompinit
|
||||
bashcompinit
|
||||
zinit ice wait lucid atinit"zpcdreplay -q"; zinit light zsh-users/zsh-syntax-highlighting
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue