mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
osx: add function to remove .DS_Store files (#7008)
rmdsstore removes .DS_Store files recursively in the current directory by default, or for the given directories.
This commit is contained in:
parent
fe5fe81c8c
commit
d4cae83152
2 changed files with 23 additions and 17 deletions
|
|
@ -209,7 +209,7 @@ if [[ ! -z "$playlist" ]]; then
|
|||
opt="play"
|
||||
else
|
||||
opt="stop"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
opt="set allPlaylists to (get name of every playlist)"
|
||||
fi
|
||||
|
|
@ -282,3 +282,8 @@ source ${ZSH}/plugins/osx/spotify
|
|||
# Show/hide hidden files in the Finder
|
||||
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
|
||||
|
||||
# Remove .DS_Store files recursively in a directory, default .
|
||||
rmdsstore() {
|
||||
find "${@:-.}" -type f -name .DS_Store -delete
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue