# source antidote source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh # initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt antidote load # autoload autoload -Uz promptinit && promptinit && prompt powerlevel10k # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # fzf_history_search keybinding after zsh-vi-mode initialization zvm_after_init() { bindkey '^_' fzf_history_search } #### ghostty updates to get virt-manager to launch properly #### # Dynamically set DISPLAY for XQuartz set_xquartz_display() { # Look for directories matching /private/tmp/com.apple.launchd.*/org.xquartz:0 local xquartz_dir=$(ls -d /private/tmp/com.apple.launchd.*/org.xquartz:0 2>/dev/null | head -n 1) # If a matching directory is found, set DISPLAY; otherwise, set a fallback or skip if [[ -n "$xquartz_dir" ]]; then export DISPLAY="$xquartz_dir" else # Optional: Set a fallback or leave unset export DISPLAY=":0" # Fallback to local display, adjust as needed echo "Warning: No XQuartz display found" >&2 fi } # Run the function to set DISPLAY for xquartz set_xquartz_display # Update XDG_DATA_DIRS for GSettings schemas export XDG_DATA_DIRS=/usr/local/share:/usr/share:/opt/homebrew/share:$XDG_DATA_DIRS # Set TERM and TERMINFO_DIRS for compatibility - https://github.com/ghostty-org/ghostty/discussions/4077 export TERM=xterm-256color export TERMINFO_DIRS=/usr/share/terminfo:/opt/homebrew/share/terminfo