2021-05-04 01:59:31 +00:00
|
|
|
# OSX
|
2012-05-22 00:18:30 +00:00
|
|
|
|
2018-04-16 22:51:57 +00:00
|
|
|
Defines [macOS][1] aliases and functions.
|
2011-10-12 03:13:58 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
This module must be loaded _before_ the [_`completion`_][2] module so that the
|
|
|
|
provided completion definitions are loaded automatically by _`completion`_
|
|
|
|
module.
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Settings
|
2017-07-22 22:43:39 +00:00
|
|
|
|
|
|
|
### Dash Keyword
|
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
To change the keyword used by `mand` to open man pages in [_Dash.app_][3] from
|
|
|
|
its default value of 'manpages', add the following line in
|
|
|
|
_`${ZDOTDIR:-$HOME}/.zpreztorc`_ and replace the **keyword** with the one
|
|
|
|
configured in [_Dash.app_][3].
|
2017-07-22 22:43:39 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
zstyle ':prezto:module:osx:man' dash-keyword 'keyword'
|
|
|
|
```
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Aliases
|
2012-05-22 00:18:30 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
- `cdf` changes the current working director to the current _Finder_ directory.
|
2021-05-04 01:59:31 +00:00
|
|
|
- `pushdf` pushes the current working directory onto the directory queue and
|
2021-05-05 17:59:01 +00:00
|
|
|
changes the current working director to the current _Finder_ directory.
|
2012-04-04 18:59:32 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Functions
|
2012-04-04 18:59:32 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
- `mand` opens _man_ pages in [_Dash.app_][3].
|
|
|
|
- `manp` opens _man_ pages in _Preview.app_.
|
|
|
|
- `pfd` prints the current _Finder_ directory.
|
|
|
|
- `pfs` prints the current _Finder_ selection.
|
|
|
|
- `tab` creates a new tab (works in both _Terminal_ and [_iTerm.app_][4]).
|
2021-05-04 01:59:31 +00:00
|
|
|
- `ql` previews files in Quick Look.
|
2021-05-05 17:59:01 +00:00
|
|
|
- `osx-rm-dir-metadata` deletes _`.DS_Store`_, _`__MACOSX`_ cruft.
|
2021-05-04 01:59:31 +00:00
|
|
|
- `osx-ls-download-history` displays the macOS download history.
|
|
|
|
- `osx-rm-download-history` deletes the macOS download history.
|
2012-04-04 18:59:32 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Authors
|
2012-06-02 21:17:12 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
_The authors of this module should be contacted via the [issue tracker][5]._
|
2012-04-04 18:59:32 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
2012-04-04 18:59:32 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
[1]: https://www.apple.com/macos/
|
2021-05-05 17:59:01 +00:00
|
|
|
[2]: ../completion#readme
|
|
|
|
[3]: https://kapeli.com/dash
|
|
|
|
[4]: https://www.iterm2.com/
|
|
|
|
[5]: https://github.com/sorin-ionescu/prezto/issues
|