From 6f569742b5184d938450601f110cda18579ceba7 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sat, 20 Jul 2024 11:47:59 +0700 Subject: [PATCH] refactor(zsh): Move bun completion to include/completion --- .config/zsh/.zshrc | 10 +--------- .config/zsh/include/completion | 2 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 477e781..d369909 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -11,13 +11,8 @@ setopt auto_cd # auto cd if directory __CONFIG_DIR=${XDG_CONFIG_HOME:-$HOME/.config} -# highlight on tab (completion) +# Completion [ -f $__CONFIG_DIR/zsh/include/completion ] && source $__CONFIG_DIR/zsh/include/completion -# zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash -# fpath=(/usr/local/share/zsh-completions $fpath) -# autoload -U compinit && compinit -u -# zmodload -i zsh/complist -# zstyle ':completion:*' menu select # Alias [ -f $__CONFIG_DIR/zsh/include/aliases ] && source $__CONFIG_DIR/zsh/include/aliases @@ -76,9 +71,6 @@ install_plugin https://github.com/zsh-users/zsh-autosuggestions # ]] Plugins -# bun completions -[ -s "/home/ziro/.bun/_bun" ] && source "/home/ziro/.bun/_bun" - pyenv --version >/dev/null 2>/dev/null && { eval "$(pyenv init -)"; eval "$(pyenv virtualenv-init -)"; diff --git a/.config/zsh/include/completion b/.config/zsh/include/completion index b2e64ba..0fc8349 100644 --- a/.config/zsh/include/completion +++ b/.config/zsh/include/completion @@ -76,3 +76,5 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then fi [ -s "/usr/share/zsh/site-functions/_pass" ] && zstyle ':completion:*' "/usr/share/zsh/site-functions/_pass" + +[ -s "/home/ziro/.bun/_bun" ] && source "/home/ziro/.bun/_bun"