more plugins more problems?

This commit is contained in:
Daylin Morgan 2023-11-12 12:54:14 -06:00
parent 9a9407f7ea
commit ece9c1bcea
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
8 changed files with 3487 additions and 60 deletions

View file

@ -1,25 +1,31 @@
# utility # pre-reqs
romkatv/zsh-bench kind:path ${ZDOTDIR}/plugins/p10k-instant
zshzoo/magic-enter mattmc3/zephyr path:plugins/zfunctions
ohmyzsh/ohmyzsh path:lib/clipboard.zsh # general use-plugins
mattmc3/zephyr path:plugins/clipboard
mattmc3/zephyr path:plugins/history
mattmc3/zephyr path:plugins/utility
ohmyzsh/ohmyzsh path:plugins/copybuffer ohmyzsh/ohmyzsh path:plugins/copybuffer
ohmyzsh/ohmyzsh path:plugins/copyfile ohmyzsh/ohmyzsh path:plugins/copyfile
ohmyzsh/ohmyzsh path:plugins/copypath
ohmyzsh/ohmyzsh path:plugins/extract ohmyzsh/ohmyzsh path:plugins/extract
ohmyzsh/ohmyzsh path:plugins/magic-enter
ohmyzsh/ohmyzsh path:plugins/fancy-ctrl-z ohmyzsh/ohmyzsh path:plugins/fancy-ctrl-z
belak/zsh-utils path:history # tools
zdharma-continuum/fast-syntax-highlighting kind:defer
Aloxaf/fzf-tab kind:defer
junegunn/fzf path:shell/completion.zsh junegunn/fzf path:shell/completion.zsh
junegunn/fzf path:shell/key-bindings.zsh junegunn/fzf path:shell/key-bindings.zsh
wfxr/forgit wfxr/forgit
romkatv/powerlevel10k # prompt
romkatv/powerlevel10k kind:fpath
${ZDOTDIR}/plugins/prompt
# Source everything in $ZDOTDIR/rc.d prior to wrapping up. # wrap-up
mattmc3/zshrc.d mattmc3/zephyr path:plugins/confd
~/.config/zsh/plugins/zexists mattmc3/zephyr path:plugins/completion
${ZDOTDIR}/plugins/zexists
# deferred
zdharma-continuum/fast-syntax-highlighting kind:defer
Aloxaf/fzf-tab kind:defer

View file

@ -29,7 +29,7 @@ path=(
) )
# start by sourcing extras # start by sourcing extras
for rcfile in $ZDOTDIR/.extras/{current,shared}/*.{,z}sh(N); do for rcfile in $ZDOTDIR/.local/{current,shared}/*.{,z}sh(N); do
source $rcfile source $rcfile
done done

View file

@ -1,51 +1,8 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
#!/usr/bin/env zsh #!/usr/bin/env zsh
# Load zprof first if we need to profile.
[[ ${ZPROFRC:-0} -eq 0 ]] || zmodload zsh/zprof
alias zprofrc="ZPROFRC=1 zsh"
setopt extended_glob
# Autoload functions directory and its subdirs.
for funcdir in $ZDOTDIR/functions $ZDOTDIR/functions/*(N/); do
fpath=($funcdir $fpath)
autoload -Uz $fpath[1]/*(.:t)
done
unset funcdir
# Be sure to set any supplemental completions directories before compinit is run.
fpath=(${ZDOTDIR}/completions(-/FN) $fpath)
[[ -d ${ZDOTDIR:-~}/.antidote ]] || [[ -d ${ZDOTDIR:-~}/.antidote ]] ||
git clone https://github.com/mattmc3/antidote ${ZDOTDIR:-~}/.antidote git clone https://github.com/mattmc3/antidote ${ZDOTDIR:-~}/.antidote
# Set the name of the static .zsh plugins file antidote will generate. source ${ZDOTDIR:-~}/.antidote/antidote.zsh
zsh_plugins=${ZDOTDIR:-~}/.zplugins.zsh antidote load ${ZDOTDIR:-~}/.zplugins
# Ensure you have a .zplugins file where you can add plugins.
[[ -f ${zsh_plugins:r} ]] || touch ${zsh_plugins:r}
# Lazy-load antidote.
fpath+=(${ZDOTDIR:-~}/.antidote/functions)
autoload -Uz $fpath[-1]/antidote
# Generate static file in a subshell when .zplugins is updated.
if [[ ! $zsh_plugins -nt ${zsh_plugins:r} ]]; then
(antidote bundle <${zsh_plugins:r} >|$zsh_plugins)
fi
# Source your static plugins file.
source $zsh_plugins
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then
[[ ! -f $ZDOTDIR/.p10k.zsh ]] || source $ZDOTDIR/.p10k.zsh
else
[[ ! -f $ZDOTDIR/.p10k-ascii.zsh ]] || source $ZDOTDIR/.p10k-ascii.zsh
fi

View file

@ -0,0 +1,7 @@
#!/usr/bin/env zsh
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

View file

@ -0,0 +1,15 @@
#!/usr/bin/env zsh
0=${(%):-%N}
# fpath+="${0:A:h}/functions"
autoload -Uz promptinit && promptinit
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )); then
[[ ! -f $ZDOTDIR/themes/.p10k.zsh ]] || source $ZDOTDIR/themes/.p10k.zsh
else
[[ ! -f $ZDOTDIR/themes/.p10k-ascii.zsh ]] || source $ZDOTDIR/themes/.p10k-ascii.zsh
fi
prompt powerlevel10k

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
# fall back prompt for tty
autoload -Uz vcs_info
precmd() {
vcs_info
}
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '