diff --git a/config/zsh/interactive/skim b/config/zsh/interactive/skim index 3c328b2..223750d 100644 --- a/config/zsh/interactive/skim +++ b/config/zsh/interactive/skim @@ -1,6 +1,8 @@ #! zsh -if [[ -f $XDG_DATA_HOME/zsh/skim.zsh ]]; then - source $XDG_DATA_HOME/zsh/skim.zsh +if (( $+commands[sk] )); then + # TODO: figure out where lotabout/skim puts these Zsh support files on non-Homebrew installs + [[ $- == *i* ]] && source /usr/local/opt/sk/share/zsh/site-functions/completion.zsh 2>/dev/null + source /usr/local/opt/sk/share/zsh/site-functions/key-bindings.zsh else bindkey '^R' history-incremental-search-backward fi