Skip to content

Commit

Permalink
osx: add function to remove .DS_Store files (ohmyzsh#7008)
Browse files Browse the repository at this point in the history
rmdsstore removes .DS_Store files recursively in the current directory by default, or for the given directories.
  • Loading branch information
Matthieu PETIOT authored and stonetao committed Apr 7, 2019
1 parent 8a9cfc3 commit 6f69d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/osx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| `man-preview` | Open a specified man page in Preview app |
| `showfiles` | Show hidden files |
| `hidefiles` | Hide the hidden files |
| `itunes` | Control iTunes. Use `itunes -h` for usage details |
| `itunes` | Control iTunes. User `itunes -h` for usage details |
| `spotify` | Control Spotify and search by artist, album, track… |
| `rmdsstore` | Remove .DS\_Store files recursively in a directory |
2 changes: 1 addition & 1 deletion plugins/osx/osx.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
function rmdsstore() {
rmdsstore() {
find "${@:-.}" -type f -name .DS_Store -delete
}

0 comments on commit 6f69d57

Please sign in to comment.