1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-31 04:08:16 +01:00
zinit-configs/psprint/functions/psfind
2019-06-27 12:47:09 +02:00

9 lines
233 B
Bash

# DESC: Queries mdfind by kMDItemDisplayName; supports -i (case insensitive search)
# vim:ft=zsh:et:sw=4:sts=4
if [ $1 = "-i" ]; then
shift
mdfind "kMDItemDisplayName == '$@'c"
else
mdfind "kMDItemDisplayName == $@"
fi