提交 5d6c3501 编写于 作者: A Ahmad Awais 提交者: Robby Russell

Enhancement: Show/Hide OSX hidden files 💯 (#5275)

上级 341e83f6
......@@ -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 |
......@@ -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"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册