chore(shell): interactive_comments, bun and grok installer blocks
- setopt interactive_comments: inline `#` comments at the prompt, so pasted commands with comment tails don't error (matches script mode) - bun: completions + BUN_INSTALL bin on PATH (installer-appended) - grok: bin on PATH + zsh completions fpath (installer-appended)
This commit is contained in:
@@ -60,6 +60,10 @@ setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
setopt hist_verify
|
||||
|
||||
# allow inline `#` comments at the interactive prompt (paste-friendly;
|
||||
# matches non-interactive/script behavior so pasted commands don't fail)
|
||||
setopt interactive_comments
|
||||
|
||||
# completion styling
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
@@ -114,3 +118,16 @@ if [[ $(uname) == "Linux" ]]; then
|
||||
bindkey "${terminfo[kcud1]}" history-search-forward
|
||||
fi
|
||||
|
||||
|
||||
# bun completions
|
||||
[ -s "/home/lkraven/.bun/_bun" ] && source "/home/lkraven/.bun/_bun"
|
||||
|
||||
# bun
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
|
||||
# >>> grok installer >>>
|
||||
export PATH="$HOME/.grok/bin:$PATH"
|
||||
fpath=(~/.grok/completions/zsh $fpath)
|
||||
autoload -Uz compinit && compinit -C
|
||||
# <<< grok installer <<<
|
||||
|
||||
Reference in New Issue
Block a user