que no entiendo al iniciar zsh, al iniciar zsh me sale la siguiente linea: La verdad no entiendo, puede ser que al instalar zinit, se hallan omitido algunas dependencias por cualquier razon? no lo se, por favor necesito ayuda!!!
(eval):1: command not found: zcomp_init
Lo cual me extraña mucho, este es mi .zshrc:
# {{{Functions
test_cmd_pre() { # {{{
command -v "$1" >/dev/null
} # }}}
test_cmd() { # {{{
test_cmd_pre "$1" && echo 'yes' || echo 'no'
} # }}}
# {{{FuzzyFinder
# fuzzy match dirs and cd
cdf() {
local dir
dir=$(find ${1:-.} -path '*/\.*' -prune \
-o -type d -print 2> /dev/null | "$FuzzyFinder") &&
cd "$dir"
}
# include hidden dirs
cdf-all() {
local dir
dir=$(find ${1:-.} -type d 2> /dev/null | grep -v ".git/" | "$FuzzyFinder") && cd "$dir"
}
# job to fore
job-fore() {
JOB_ID=$(jobs | grep "[[[:digit:]]*]" | "$FuzzyFinder" | grep -o "[[[:digit:]]*]" | grep -o "[[:digit:]]*")
fg %"$JOB_ID"
}
# job to back
job-back() {
JOB_ID=$(jobs | grep "[[[:digit:]]*]" | "$FuzzyFinder" | grep -o "[[[:digit:]]*]" | grep -o "[[:digit:]]*")
bg %"$JOB_ID"
}
# job kill
job-kill() {
JOB_ID=$(jobs | grep "[[[:digit:]]*]" | "$FuzzyFinder" | grep -o "[[[:digit:]]*]" | grep -o "[[:digit:]]*")
kill %"$JOB_ID"
}
# ps ls
ps-ls() {
PROC_ID_ORIGIN=$(ps -alf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
echo "$PROC_ID_ORIGIN"
fi
}
# ps ls all
ps-ls-all() {
PROC_ID_ORIGIN=$(ps -elf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
echo "$PROC_ID_ORIGIN"
fi
}
# ps info
ps-info() {
PROC_ID_ORIGIN=$(ps -alf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
top -p "$PROC_ID"
fi
}
# ps info all
ps-info-all() {
PROC_ID_ORIGIN=$(ps -elf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
top -p "$PROC_ID"
fi
}
# ps tree
ps-tree() {
PROC_ID_ORIGIN=$(ps -alf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
pstree -p "$PROC_ID"
fi
}
# ps tree all
ps-tree-all() {
PROC_ID_ORIGIN=$(ps -elf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
pstree -p "$PROC_ID"
fi
}
# ps kill
ps-kill() {
PROC_ID_ORIGIN=$(ps -alf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
kill -9 "$PROC_ID"
fi
}
# ps kill
ps-kill-all() {
PROC_ID_ORIGIN=$(ps -elf | "$FuzzyFinder")
if [[ $(echo "$PROC_ID_ORIGIN" | grep "UID[[:blank:]]*PID")x == ""x ]]; then
PROC_ID=$(echo "$PROC_ID_ORIGIN" | grep -o '^[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*[[:blank:]]*[^[:blank:]]*' | grep -o '[[:digit:]]*$')
kill -9 "$PROC_ID"
fi
}
# }}}
# {{{zcomp-gen
zcomp-gen () {
echo "[1] manpage [2] help"
read -r var
if [[ "$var"x == ""x ]]; then
var=1
fi
if [[ "$var"x == "1"x ]]; then
TARGET=$(find -L /usr/share/man -type f -print -o -type l \
-print -o \( -path '*/\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) \
-prune 2> /dev/null |\
sed 's|\./||g' |\
sed '1i [cancel]' |\
fzf)
if [[ "$TARGET"x == "[cancel]"x ]]; then
echo ""
else
echo "$TARGET" | xargs -i sh ~/.zinit/plugins/nevesnunes---sh-manpage-completions/gencomp-manpage {}
zpcompinit
fi
elif [[ "$var"x == "2"x ]]; then
TARGET=$(compgen -cb | sed '1i [cancel]' | fzf)
if [[ "$TARGET"x == "[cancel]"x ]]; then
echo ""
else
gencomp "$TARGET"
zpcompinit
fi
fi
}
# }}}
# }}}
# {{{Alias
alias tmuxfzf="$HOME/.tmux/plugins/tmux-fzf/main.sh"
alias ls='lsd'
alias ls-tree='lsd --tree -A'
alias du='du -sh'
alias df='df -h'
alias cp='cp -ip'
alias mv='mv -i'
alias cdh='pushd +$( dirs -v | "$FuzzyFinder" | grep -o "[[:digit:]]") > /dev/null'
alias cdh-ls='dirs -vl | "$FuzzyFinder"'
alias cdh-clean='popd +$( dirs -v | "$FuzzyFinder" | grep -o "[[:digit:]]") > /dev/null'
alias cdh-clean-all='dirs -c'
alias cdr='cd $(git rev-parse --show-toplevel)'
alias job-='fg %-'
alias job-ls='jobs -l'
alias nnn='PAGER= nnn'
alias vimpager="nvim --cmd 'let g:vim_man_pager = 1' -c MANPAGER -"
alias help='bash ~/repo/scripts/func/help.sh'
alias colorscheme='bash ~/repo/scripts/func/colorscheme.sh'
alias tmux-start='tmux new-session -s Alpha'
alias px='proxychains -q'
alias hn='proxychains -q hn'
alias gitproxyon='git config --global http.proxy "socks5://127.0.0.1:1080" && git config --global https.proxy "socks5://127.0.0.1:1080"'
alias gitproxyoff='git config --global --unset http.proxy && git config --global --unset https.proxy'
alias bebusy='python ~/repo/scripts/func/bebusy.py'
alias clean='bash ~/repo/scripts/func/clean.sh'
alias zip-r='bash ~/repo/scripts/func/zip.sh'
alias net-test="bash ~/repo/scripts/func/net-test.sh"
alias fix-wifi="sudo iw dev wlp1s0 set power_save off"
alias gencomp-help='gencomp'
alias nvistat='nvidia-smi'
alias proxyenv='export HTTP_PROXY=http://127.0.0.1:1081 && export HTTPS_PROXY=http://127.0.0.1:1081 && export http_proxy=http://127.0.0.1:1081 && export https_proxy=http://127.0.0.1:1081'
alias mkinitcpio-surface='sudo mkinitcpio -p linux-surface'
# }}}
# {{{Plugins
# https://github.com/zdharma/zinit
# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview
# https://github.com/sorin-ionescu/prezto
source ~/.zinit/bin/zinit.zsh
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit light romkatv/powerlevel10k
zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit ice wait'0' lucid; zinit light zsh-users/zsh-history-substring-search
zinit ice wait'0' lucid; zinit light skywind3000/z.lua
zinit ice wait'1' lucid; zinit light ytet5uy4/fzf-widgets
zinit ice wait'0' lucid; zinit light urbainvaes/fzf-marks
zinit ice wait'1' lucid; zinit light hlissner/zsh-autopair
zinit ice wait'1' lucid; zinit snippet OMZ::plugins/vi-mode/vi-mode.plugin.zsh
zinit ice wait'1' lucid; zinit snippet OMZ::plugins/extract/extract.plugin.zsh
zinit ice wait'1' lucid; zinit snippet OMZ::plugins/command-not-found/command-not-found.plugin.zsh
zinit ice wait'1' lucid; zinit light denysdovhan/gitio-zsh
zinit ice wait'0' blockf lucid; zinit light sainnhe/zsh-completions
zinit ice wait'0' lucid; zinit light RobSis/zsh-completion-generator
zinit ice wait'0' atload"export FPATH=$HOME/.zinit/plugins/RobSis---zsh-completion-generator/completions:$HOME/.zinit/plugins/nevesnunes---sh-manpage-completions/completions/zsh:$FPATH; zcomp_init" as"program" atclone"mv run.sh gencomp-manpage; sed -i -e '1i pushd ~/.zinit/plugins/nevesnunes---sh-manpage-completions/' -e '\$a popd' gencomp-manpage" pick"run.sh" lucid; zinit light nevesnunes/sh-manpage-completions
zinit ice wait'0' pick".zsh-snippets" lucid; zinit light "$HOME"
source "$HOME/.zsh-theme"
# {{{fast-syntax-highlighting
FAST_HIGHLIGHT[chroma-git]="chroma/-ogit.ch"
# }}}
# {{{fzf
# $ fzf # fuzzy search files
# Tab/Down/S-Tab/Up # navigate
# C-s # Select items
# C-p # Toggle preview
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_DEFAULT_OPTS="
-m --height=50%
--layout=reverse
--prompt='➤ '
--ansi
--tabstop=4
--color=dark
--color=bg:-1,hl:2,fg+:4,bg+:-1,hl+:2
--color=info:1,prompt:2,pointer:5,marker:1,spinner:3,header:11
--bind=tab:down,btab:up,ctrl-s:toggle,ctrl-p:toggle-preview
"
# C-f fzf-widgets
# A-f file-widget
# C-r history search
# **<Tab> fuzzy matching path
source /usr/share/fzf/completion.zsh
source /usr/share/fzf/key-bindings.zsh
bindkey '^F' fzf-select-widget
bindkey -r "^[c"
bindkey -r "^T"
bindkey '\ef' fzf-file-widget
bindkey '^6' tmuxfzf
# }}}
# {{{fzf-marks
# Usage:
# $ mark # mark current directory
# $ fzm # select marked directories using fzf
# ^z # select marked directories using fzf
# ^d # delete selected items when in fzf
FZF_MARKS_FILE="$HOME/.cache/fzf-marks"
FZF_MARKS_COMMAND="fzf"
FZF_MARKS_COLOR_RHS="249"
FZF_MARKS_JUMP="^z"
# }}}
# {{{zsh-autosuggestions
export ZSH_AUTOSUGGEST_USE_ASYNC="true"
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=244"
bindkey '^[^M' autosuggest-execute
# }}}
# {{{zsh-history-substring-search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# }}}
# {{{z.lua
export _ZL_DATA="$HOME/.cache/.zlua"
export _ZL_MATCH_MODE=1
alias zc='z -c' # 严格匹配当前路径的子路径
alias zz='z -i' # 使用交互式选择模式
alias zf='z -I' # 使用 fzf 对多个结果进行选择
# }}}
# }}}
# {{{Startup
# zprof # 取消注释首行和本行,然后执行 time zsh -i -c exit
# 若直接执行 zprof,将会测试包括 lazyload 在内的所有启动时间
clear
# }}}
#{{{FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
#}}}
La linea en donde encuentro el error es la siguiente (entiendo que no tengo instalado zcomp_inint, pero no se como instalarlo, oh si es que tengo que reinstalar zinit, de repente no se instalaron algunas cosas, pero necesito ayuda):
zinit ice wait'0' atload"export FPATH=$HOME/.zinit/plugins/RobSis---zsh-completion-generator/completions:$HOME/.zinit/plugins/nevesnunes---sh-manpage-completions/completions/zsh:$FPATH; zcomp_init" as"program" atclone"mv run.sh gencomp-manpage; sed -i -e '1i pushd ~/.zinit/plugins/nevesnunes---sh-manpage-completions/' -e '\$a popd' gencomp-manpage" pick"run.sh" lucid; zinit light nevesnunes/sh-manpage-completions