From dceeff9590b59955912d98b01791e54ba0200eb2 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 15 Jul 2021 16:14:40 +1000 Subject: [PATCH] Remove need for XDG_DATA_HOME/zsh/skim.zsh --- config/zsh/interactive/skim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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