Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
5d6c3501
Commit
5d6c3501
authored
Aug 15, 2016
by
Ahmad Awais
Committed by
Robby Russell
Aug 14, 2016
Browse files
Enhancement: Show/Hide OSX hidden files
💯
(#5275)
parent
341e83f6
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/osx/README.md
View file @
5d6c3501
...
...
@@ -16,7 +16,7 @@ Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
## Commands
| Command | Description |
|:--------------
|
:-----------------------------------------------|
|
:--------------
|
:-----------------------------------------------
|
|
`tab`
| Open the current directory in a new tab |
|
`ofd`
| Open the current directory in a Finder window |
|
`pfd`
| Return the path of the frontmost Finder window |
...
...
@@ -25,3 +25,5 @@ Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
|
`pushdf`
|
`pushd`
to the current Finder directory |
|
`quick-look`
| Quick-Look a specified file |
|
`man-preview`
| Open a specified man page in Preview app |
|
`showfiles`
| Show hidden files |
|
`hidefiles`
| Hide the hidden files |
plugins/osx/osx.plugin.zsh
View file @
5d6c3501
...
...
@@ -260,3 +260,7 @@ EOF
esac
osascript
-e
"tell application
\"
iTunes
\"
to
$opt
"
}
# 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"
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