Browse Source

[utility] Update documentation for 'safe-ops'

Update formatting and wordings to be more consistent with rest of prezto
documentation.
master
Indrajit Raychaudhuri 7 years ago committed by Indrajit Raychaudhuri
parent
commit
cb4be65d29
  1. 8
      modules/utility/README.md
  2. 6
      runcoms/zpreztorc

8
modules/utility/README.md

@ -109,9 +109,11 @@ Aliases @@ -109,9 +109,11 @@ Aliases
### Safe ops
By default, `cp`,`ln`, `mv`, and `rm` are aliased to their interactive variants.
If this is not desired, you can disable it by adding
`zstyle ':prezto:module:utility' safe-ops no` to your zpreztorc.
By default, `cp`,`ln`, `mv` and `rm` are aliased to their interactive variants.
If this is not desired, it can be disabled by adding the following line to
*zpreztorc*:
zstyle ':prezto:module:utility' safe-ops 'no'.
In addition, the following aliases have been added:

6
runcoms/zpreztorc

@ -191,7 +191,7 @@ zstyle ':prezto:module:prompt' theme 'sorin' @@ -191,7 +191,7 @@ zstyle ':prezto:module:prompt' theme 'sorin'
# Utility
#
# safe-ops is enabled by default. This aliases rm, mv, cp, and ln so that they
# prompt before deleting or copying over files. Set to no to disable this safer
# Enabled safe options. This aliases cp, ln, mv and rm so that they prompt
# before deleting or overwriting files. Set to 'no' to disable this safer
# behavior.
# zstyle ':prezto:module:utility' safe-ops yes
# zstyle ':prezto:module:utility' safe-ops 'yes'

Loading…
Cancel
Save