Added file checks on music and spotify scripts for use with zinit

This commit is contained in:
Darrin Tisdale 2025-09-22 12:06:51 -04:00
commit bc95146445

View file

@ -310,7 +310,7 @@ _freespace() {
compdef _freespace freespace
# Music / iTunes control function
source "${0:h:A}/music"
[[ -f "${0:h:A}/music" ]] && source "${0:h:A}/music"
# Spotify control function
source "${0:h:A}/spotify"
[[ -f "${0:h:A}/spotify" ]] && source "${0:h:A}/spotify"