diff options
| author | seth <[email protected]> | 2022-10-04 13:46:51 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-10-04 13:46:51 -0400 |
| commit | 3f87db711bf4c42fac4263c31c193fe8b5f61e54 (patch) | |
| tree | a202bc29b3918051ff06df9cc2ff6b608af24bcd /.config | |
| parent | 0d0aa6ed2cfca22dfbb511c2c3caac1e6071b3e9 (diff) | |
update zsh dotfiles
Diffstat (limited to '.config')
| -rw-r--r-- | .config/zsh/.zshenv | 2 | ||||
| -rw-r--r-- | .config/zsh/.zshrc | 29 |
2 files changed, 13 insertions, 18 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index fefc8c3..f547136 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -11,3 +11,5 @@ if [[ -d "${HOME}/.local/bin" ]]; then path=("${HOME}/.local/bin" "$path[@]") export PATH fi + +zstyle ':antidote:bundle' use-friendly-names 'yes' # don't use ugly dirs diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 976f267..4da21d0 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -2,30 +2,23 @@ # getchoo's zshrc # +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 + local zdump="${XDG_CACHE_HOME}/zsh/zcompdump" local antidote_dir="${ZDOTDIR}/.antidote" -local plugins_file="${ZDOTDIR}/.zsh_plugins.txt" -local static_file="${ZDOTDIR}/.zsh_plugins.zsh" -zstyle ':antidote:bundle' use-friendly-names 'yes' # don't use ugly dirs -# recompile static file when needed -if [[ ! "$static_file" -nt "$plugins_file" ]] -then # bootstrap antidote - [[ ! -e "$antidote_dir/antidote.zsh" ]] && \ +if [[ ! -e "$antidote_dir/antidote.zsh" ]] +then git clone --depth=1 https://github.com/mattmc3/antidote.git "$antidote_dir" - - source "${antidote_dir}/antidote.zsh" - [[ ! -e "$plugins_file" ]] && touch "$plugins_file" - antidote bundle < "$plugins_file" > "$static_file" fi -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 +source "${antidote_dir}/antidote.zsh" # zmodules -autoload -Uz bashcompinit compinit colors "${antidote_dir}/antidote.zsh" +autoload -Uz bashcompinit compinit colors colors zmodload zsh/zutil zmodload zsh/complist @@ -34,7 +27,7 @@ zstyle ':completion::*' completer _ignored _expand_alias _expand _extensions _co zstyle ':completion::*' group-name '' zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' menu 'true' 'select' -zstyle ':completion:*' single-ignored 'show' +zstyle ':completion:*' single-ignored 'file' zstyle ':completion:*' squeeze-slashes 'true' zstyle ':completion::*' use-cache 'true' zstyle ':completion::*' cache-path "$zdump" @@ -49,8 +42,8 @@ fi unset zdump # load plugins -source "$static_file" -unset antidote_dir plugins_file static_file +antidote load +unset antidote_dir eval "$(zoxide init zsh)" # options |
