mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-06 04:49:31 +00:00
- Remove deprecated GREP_OPTIONS (handled via alias) - Quote $ZSH_COMPDUMP to prevent word splitting - Remove duplicate vim alias (nvim alias takes precedence) - Consolidate completion path to ZSH_CUSTOM_COMPLETION_PATH - Simplify PATH setup in rcfiles, centralize in exports - Move LM Studio PATH from rcfiles to exports - Add clarifying comments for macOS-specific ssh-add
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# this is my zsh config. there are many like it, but this one is mine.
|
|
# https://zsh.sourceforge.io/Intro/intro_3.html
|
|
# shellcheck shell=bash
|
|
|
|
# export VERBOSE=1
|
|
# export DEBUG=1
|
|
autoload -U promptinit; promptinit
|
|
|
|
export DOTFILES="$HOME/.dotfiles"
|
|
# Minimal PATH for x-have and utilities; full PATH set in shared.sh/exports
|
|
export PATH="$HOME/.local/bin:$DOTFILES/local/bin:$PATH"
|
|
export SHARED_SCRIPTS_SOURCED=0
|
|
|
|
source "$DOTFILES/config/shared.sh"
|
|
|
|
# zsh completions directory (ZSH_CUSTOM_COMPLETION_PATH set in shared.sh)
|
|
ZSH_COMPDUMP="$XDG_CACHE_HOME/zsh/zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
|
|
|
source "$DOTFILES/config/zsh/antidote.zsh"
|
|
|
|
# Function to source FZF configuration
|
|
source_fzf_config()
|
|
{
|
|
local fzf_config="${DOTFILES}/config/fzf/fzf.zsh"
|
|
if [[ -f "$fzf_config" ]]; then
|
|
# shellcheck source=config/fzf/fzf.zsh
|
|
source "$fzf_config"
|
|
fi
|
|
}
|
|
|
|
source_fzf_config
|
|
x-have antidot && eval "$(antidot init)"
|
|
|
|
autoload -Uz compinit bashcompinit
|
|
compinit -d "$ZSH_COMPDUMP"
|
|
bashcompinit
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
export P10K_CONFIG="$DOTFILES/config/zsh/p10k.zsh"
|
|
[[ ! -f "$P10K_CONFIG" ]] || source "$P10K_CONFIG"
|
|
|