Remove need for XDG_DATA_HOME/zsh/skim.zsh

This commit is contained in:
Danielle McLean 2021-07-15 16:14:40 +10:00
parent 78208004a3
commit dceeff9590
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -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