1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 13:58:00 +00:00
prezto/modules/osx
Indrajit Raychaudhuri 1ff9421f7b general: Update documentation better qualifying runcom paths
Zsh and Prezto files don't always reside in `~/`. Instead, they have
a more spec compliant location (`${ZDOTDIR:-$HOME}/`). Make them
unambiguous in the documentation. Likewise, for `$GNUPGHOME`.

Further, add instruction for optionally setting up Prezto in
`$XDG_CONFIG_HOME`.

While at this, also add clarification on relative ordering of some of
the modules, apply more formatting tweaks and doc improvements.
2021-05-21 12:31:02 -05:00
..
functions osx module mand fix 2021-04-26 15:37:01 -05:00
init.zsh Fix missing dependency on helper module for helpers added in #1793 (#1811) 2020-03-29 12:49:35 -07:00
README.md general: Update documentation better qualifying runcom paths 2021-05-21 12:31:02 -05:00

OSX

Defines macOS aliases and functions.

This module must be loaded before the completion module so that the provided completion definitions are loaded automatically by completion module.

Settings

Dash Keyword

To change the keyword used by mand to open man pages in Dash.app 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.

zstyle ':prezto:module:osx:man' dash-keyword 'keyword'

Aliases

  • cdf changes the current working director to the current Finder directory.
  • pushdf pushes the current working directory onto the directory queue and changes the current working director to the current Finder directory.

Functions

  • mand opens man pages in Dash.app.
  • 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).
  • ql previews files in Quick Look.
  • osx-rm-dir-metadata deletes .DS_Store, __MACOSX cruft.
  • osx-ls-download-history displays the macOS download history.
  • osx-rm-download-history deletes the macOS download history.

Authors

The authors of this module should be contacted via the issue tracker.