more plugins more problems?
This commit is contained in:
parent
9a9407f7ea
commit
ece9c1bcea
8 changed files with 3487 additions and 60 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
15
home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh
Normal file
15
home/private_dot_config/zsh/plugins/prompt/prompt.plugin.zsh
Normal 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
|
||||||
|
|
1715
home/private_dot_config/zsh/themes/dot_p10k-ascii.zsh
Normal file
1715
home/private_dot_config/zsh/themes/dot_p10k-ascii.zsh
Normal file
File diff suppressed because it is too large
Load diff
1717
home/private_dot_config/zsh/themes/dot_p10k.zsh
Normal file
1717
home/private_dot_config/zsh/themes/dot_p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
10
home/private_dot_config/zsh/zexists.d/cmd/anti-starship.zsh
Normal file
10
home/private_dot_config/zsh/zexists.d/cmd/anti-starship.zsh
Normal 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$ '
|
Loading…
Reference in a new issue