summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kapkov <igasgeek@me.com>2018-11-28 08:58:36 +1100
committerMarc Cornellà <marc.cornella@live.com>2018-11-27 22:58:36 +0100
commit2614b7ecdfe8b8f0cbeafffefb5925196f4011d4 (patch)
tree01e8a8604402b01c4c806f9a1fb23f37717e2912
parent0a59baf4c526b95fe6137397be6b1b8b63d1daba (diff)
downloadzsh-2614b7ecdfe8b8f0cbeafffefb5925196f4011d4.tar.gz
zsh-2614b7ecdfe8b8f0cbeafffefb5925196f4011d4.tar.bz2
zsh-2614b7ecdfe8b8f0cbeafffefb5925196f4011d4.zip
osx: fix rmdsstore function definition (#7443)
-rw-r--r--plugins/osx/osx.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 6a4b6eec4..a1c73a184 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -284,6 +284,6 @@ alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true &&
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Remove .DS_Store files recursively in a directory, default .
-rmdsstore() {
+function rmdsstore() {
find "${@:-.}" -type f -name .DS_Store -delete
}