Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d4cae831
Commit
d4cae831
authored
Sep 10, 2018
by
Matthieu PETIOT
Committed by
Marc Cornellà
Sep 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
fe5fe81c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
17 deletions
+23
-17
README.md
plugins/osx/README.md
+17
-16
osx.plugin.zsh
plugins/osx/osx.plugin.zsh
+6
-1
No files found.
plugins/osx/README.md
View file @
d4cae831
...
@@ -42,19 +42,20 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
...
@@ -42,19 +42,20 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## Commands
## Commands
| Command | Description |
| Command | Description |
| :-------------- | :----------------------------------------------- |
| :-------------- | :-------------------------------------------------- |
|
`tab`
| Open the current directory in a new tab |
|
`tab`
| Open the current directory in a new tab |
|
`split_tab`
| Split the current terminal tab horizontally |
|
`split_tab`
| Split the current terminal tab horizontally |
|
`vsplit_tab`
| Split the current terminal tab vertically |
|
`vsplit_tab`
| Split the current terminal tab vertically |
|
`ofd`
| Open the current directory in a Finder window |
|
`ofd`
| Open the current directory in a Finder window |
|
`pfd`
| Return the path of the frontmost Finder window |
|
`pfd`
| Return the path of the frontmost Finder window |
|
`pfs`
| Return the current Finder selection |
|
`pfs`
| Return the current Finder selection |
|
`cdf`
|
`cd`
to the current Finder directory |
|
`cdf`
|
`cd`
to the current Finder directory |
|
`pushdf`
|
`pushd`
to the current Finder directory |
|
`pushdf`
|
`pushd`
to the current Finder directory |
|
`quick-look`
| Quick-Look a specified file |
|
`quick-look`
| Quick-Look a specified file |
|
`man-preview`
| Open a specified man page in Preview app |
|
`man-preview`
| Open a specified man page in Preview app |
|
`showfiles`
| Show hidden files |
|
`showfiles`
| Show hidden files |
|
`hidefiles`
| Hide the hidden files |
|
`hidefiles`
| Hide the hidden files |
|
`itunes`
| Control iTunes. User
`itunes -h`
for usage details |
|
`itunes`
| Control iTunes. User
`itunes -h`
for usage details |
|
`spotify`
| Control Spotify and search by artist, album, track and etc.|
|
`spotify`
| Control Spotify and search by artist, album, track… |
|
`rmdsstore`
| Remove .DS
\_
Store files recursively in a directory |
plugins/osx/osx.plugin.zsh
View file @
d4cae831
...
@@ -209,7 +209,7 @@ if [[ ! -z "$playlist" ]]; then
...
@@ -209,7 +209,7 @@ if [[ ! -z "$playlist" ]]; then
opt
=
"play"
opt
=
"play"
else
else
opt
=
"stop"
opt
=
"stop"
fi
fi
else
else
opt
=
"set allPlaylists to (get name of every playlist)"
opt
=
"set allPlaylists to (get name of every playlist)"
fi
fi
...
@@ -282,3 +282,8 @@ source ${ZSH}/plugins/osx/spotify
...
@@ -282,3 +282,8 @@ source ${ZSH}/plugins/osx/spotify
# Show/hide hidden files in the Finder
# Show/hide hidden files in the Finder
alias
showfiles
=
"defaults write com.apple.finder AppleShowAllFiles -bool true && killall 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"
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment