1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-12 15:34:50 +08:00

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
parent 58cba61465
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"