mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-14 16:13:44 +08:00
Added file checks on music and spotify scripts for use with zinit
This commit is contained in:
parent
58cba61465
commit
bc95146445
@ -310,7 +310,7 @@ _freespace() {
|
|||||||
compdef _freespace freespace
|
compdef _freespace freespace
|
||||||
|
|
||||||
# Music / iTunes control function
|
# Music / iTunes control function
|
||||||
source "${0:h:A}/music"
|
[[ -f "${0:h:A}/music" ]] && source "${0:h:A}/music"
|
||||||
|
|
||||||
# Spotify control function
|
# Spotify control function
|
||||||
source "${0:h:A}/spotify"
|
[[ -f "${0:h:A}/spotify" ]] && source "${0:h:A}/spotify"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user