1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 02:41:13 +00:00
Commit Graph

30 Commits

Author SHA1 Message Date
Indrajit Raychaudhuri
515d70f639 utility: Add support for 'aria2c' in 'get' alias
`get` alias now supports `aria2c` via optional `zstyle`.

To configure `aria2c` to be used for `get`, use:
zstyle -s ':prezto:module:utility:download' helper 'aria2c'

Note that we still fall back to `curl` when the desired download helper
isn't available.
2021-05-21 13:35:51 -05:00
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
Indrajit Raychaudhuri
424d4cb779 utility: Detect GNU 'ls' before applying the relevant tweaks
Detect `ls` provided by GNU Core Utilities upfront before applying
the relevant settings and aliases.

The revised logic takes the following aspects into consideration:
- `is-callable 'dircolors'` is not a sufficient test for verifying if
  the `ls` in scope is _also_ provided by GNU Core Utilities. `ls` can
  continue to be the one provided by BSD Core Utilities because of its
  precedence in `$path`.
- The `ls` in scope anyway can be either GNU Utils provided or BSD Utils
  provided depending on either `$path` precedence, soft link (via
  `ln -s`), or wrapper function (via 'gnu-utility' module).
- So instead of '_guessing_' the possible one, just detect if it is from
  GNU Utils and apply the relevant settings and aliases.
- Note that GNU prefixed `ls` (`gls`) is intentionally not honored in
  this case to avoid possible conflict/shadowing with other `gls`
  callable (can happen if 'git' module is used, for example).
  Besides, honoring `gls` would imply we honor other commands (like
  `mv`, `rm` etc.) to be consistent. We have a module 'gnu-utils'
  dedicated for that after all.
2021-05-21 11:50:18 -05:00
Indrajit Raychaudhuri
d80e393f78 general: Reformat documentation with better formatting and wording
General purpose reformating and rewording in (a few places). This should
also make markdown linting happier.

Prefer back-ticks wherever useful and use `console` for code blocks to
be executed on terminal.

Also, update references links wherever possible (including update from
'http://' to 'https://').
2021-05-05 12:21:04 -05:00
monai
b8d7e2cad8 Add zstyle option to disable zsh option CORRECT 2019-03-05 14:04:21 -08:00
Tercio Gaudencio Filho
1ed5331e84 Fix issue #1635. Option to disable GNU ls to group directories first. 2018-10-18 16:22:04 -05:00
Indrajit Raychaudhuri
992b9de505 doc: More copyediting and formatting for consistency 2018-10-12 12:04:49 -05:00
Indrajit Raychaudhuri
2436806fce [utility] Simplify enabling 'diff' color conditions in wrapper function
Nested `if` can be removed for simple cases like these.
Also, doc cleanup.
2017-11-12 16:51:24 -08:00
Andrew Breckenridge
34d4897d0e Updates outdate Mac OS X to macOS 2017-09-07 11:30:05 -07:00
Indrajit Raychaudhuri
a60fe47359 [utility] Refactor rsync_scp wrapper function and add completion support
Changes:
- Rename `rsync_scp_wrap` to `noremoteglob` and make it more generally usable
- Enable completion support for commands wrapped with `noremoteglob`
- Tighten up internal variable usages
- Update documentation for 'noremoteglob' function
2017-07-22 13:13:52 -05:00
Indrajit Raychaudhuri
ac628c9059 [general] Switch code block formatting to use fence formatting
Changes:
* Indented code block doesn't support syntax highlighting, use fenced
formatting (```) instead for better syntax highlighting
* Wrap commands/functions in backticks
* Typo fixes
2017-07-22 13:11:29 -05:00
Indrajit Raychaudhuri
cb4be65d29 [utility] Update documentation for 'safe-ops'
Update formatting and wordings to be more consistent with rest of prezto
documentation.
2017-07-17 19:57:32 -05:00
Kaleb Elwert
17bc7530ba Update documentation on safeops 2017-07-11 11:58:56 -07:00
Diego Rabatone Oliveira
7c172fc9a7 Fix #1337 by removing top alias to htop. (#1341)
Fixes #1337
2017-06-21 14:37:03 -07:00
Guillaume Subiron
81b41d2367 Add utility alias for pydf 2017-04-18 02:37:23 -07:00
Kaleb Elwert
600b4cc9e6 Add missing alias to utility README 2017-04-15 14:16:15 -07:00
Kyle Rich
4e35f701ca Add "sa" alias to make it easy to search aliases 2017-04-04 21:11:36 -07:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Laurent Goussard
8189577772 Disable glob for bower
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-02-16 18:29:01 -05:00
Sorin Ionescu
cc7e43b242 [Fix #253] Move Prezto settings into their own file 2012-09-03 16:52:47 -04:00
Sorin Ionescu
fb9a20591f [Fix #197] Rebrand as Prezto
Conflicts:
	README.md
	runcoms/zshenv
2012-09-03 16:51:27 -04:00
Sorin Ionescu
2183f64d31 Move prep and psub from Perl to Utility 2012-08-13 20:13:55 -04:00
Sorin Ionescu
88af470bd6 [Fix #232] Disable globbing for rsync, scp, ftp, sftp 2012-08-07 21:31:54 -04:00
Sorin Ionescu
34ca75cdf2 [Fix #210] Rename alias lp to lm 2012-06-23 13:09:55 -04:00
Sorin Ionescu
859ab4e8e0 Correct spelling mistakes in READMEs 2012-06-12 15:13:21 -04:00
Sorin Ionescu
cbdf8122a6 [Fix #149] Restructure utility 2012-06-10 20:04:56 -04:00
Sorin Ionescu
6740d88fb2 [#149, Fix #98] Add documentation for alias 2012-06-10 20:04:55 -04:00
Sorin Ionescu
b2b90c22f8 Improve diction in documentation 2012-06-02 17:17:12 -04:00
Sorin Ionescu
075f516763 Clean up READMEs 2012-05-21 20:34:07 -04:00
Colin Hebert
64e1e968eb [Fix #121] Add documentation for utility 2012-05-05 19:52:27 -04:00