stuff
This commit is contained in:
parent
393936517a
commit
1cb1a750de
11 changed files with 43 additions and 628 deletions
70
zsh/rc.zsh
70
zsh/rc.zsh
|
@ -1,46 +1,53 @@
|
|||
export path=($path $HOME/.config/dotfiles/bin)
|
||||
export fpath=($fpath $ZDOTDIR/local/fpath)
|
||||
export FZF_MARKS_FILE=$HOME/.config/fzfmarks
|
||||
export FZF_MARKS_FILE="$HOME/.config/fzfmarks"
|
||||
export STARSHIP_CONFIG="$ZDOTDIR/starship.toml"
|
||||
export ZSH_CACHE_PATH="$HOME/.cache/zsh/compcache/"
|
||||
|
||||
# Stuff
|
||||
setopt auto_cd
|
||||
setopt multios
|
||||
setopt prompt_subst
|
||||
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
|
||||
|
||||
# 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
|
||||
export STARSHIP_CONFIG=$ZDOTDIR/starship.toml
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# sharkdp/fd
|
||||
zinit ice as"command" from"gh-r" mv"fd* -> fd" pick"fd/fd"
|
||||
zinit light sharkdp/fd
|
||||
# Programs
|
||||
zinit ice as"program" from"gh-r" mv"fd* -> fd" pick"fd/fd"; zinit light sharkdp/fd
|
||||
zinit ice as"program" from"gh-r" mv"bat* -> bat" pick"bat/bat"; zinit light sharkdp/bat
|
||||
zinit ice as"program" from"gh-r" mv"exa* -> exa"; zinit light ogham/exa
|
||||
zinit ice as"program" from"gh-r" mv"pet* -> pet" pick"usr/local/bin/pet"; zinit light knqyf263/pet
|
||||
|
||||
# sharkdp/bat
|
||||
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
||||
zinit light sharkdp/bat
|
||||
|
||||
# ogham/exa, replacement for ls
|
||||
zinit ice as"program" from"gh-r" mv"exa* -> exa"
|
||||
zinit light ogham/exa
|
||||
|
||||
# knqyf263/pet, replacement for ls
|
||||
zinit ice as"program" from"gh-r" mv"pet* -> pet" pick"usr/local/bin/pet"
|
||||
zinit light knqyf263/pet
|
||||
|
||||
zinit wait lucid light-mode blockf atpull'zinit creinstall -q .' for zsh-users/zsh-completions
|
||||
zinit wait lucid light-mode atload"_zsh_autosuggest_start" for zsh-users/zsh-autosuggestions
|
||||
# Completions and Autosuggestions
|
||||
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
|
||||
source $ZDOTDIR/files/dircolor.zsh
|
||||
source $ZDOTDIR/files/aliases.zsh
|
||||
source $ZDOTDIR/files/completion.zsh
|
||||
source $ZDOTDIR/files/history.zsh
|
||||
source $ZDOTDIR/files/direnv.zsh
|
||||
zinit snippet OMZL::functions.zsh
|
||||
zinit snippet OMZL::completion.zsh
|
||||
zinit snippet OMZL::directories.zsh
|
||||
zinit snippet OMZL::key-bindings.zsh
|
||||
zinit snippet OMZL::termsupport.zsh
|
||||
|
@ -51,17 +58,24 @@ zinit snippet OMZP::command-not-found
|
|||
zinit snippet OMZP::fzf
|
||||
zinit snippet OMZP::lando
|
||||
|
||||
#eval "$(fasd --init auto)"
|
||||
zinit wait lucid light-mode for wookayin/fzf-fasd
|
||||
zinit wait lucid light-mode for urbainvaes/fzf-marks
|
||||
zinit wait lucid light-mode for voronkovich/gitignore.plugin.zsh
|
||||
zinit wait lucid light-mode for reegnz/jq-zsh-plugin
|
||||
zinit wait lucid light-mode for @asdf-vm/asdf
|
||||
zinit wait lucid light-mode for Aloxaf/fzf-tab
|
||||
# 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:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org'
|
||||
|
||||
eval "$(fasd --init auto)"
|
||||
zinit ice wait lucid; zinit light wookayin/fzf-fasd
|
||||
zinit ice wait lucid; zinit light urbainvaes/fzf-marks
|
||||
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
|
||||
zinit wait lucid light-mode atinit"zpcdreplay -q" for zsh-users/zsh-syntax-highlighting
|
||||
bashcompinit
|
||||
zinit ice wait lucid atinit"zpcdreplay -q"; zinit light zsh-users/zsh-syntax-highlighting
|
||||
|
||||
# Local RC
|
||||
[[ -f "$ZDOTDIR/local/rc.zsh" ]] && source "$ZDOTDIR/local/rc.zsh"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue