1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-14 03:01:12 +00:00
Commit Graph

28 Commits

Author SHA1 Message Date
Indrajit Raychaudhuri
f3c92ffeb3 utility: Pipe diff output through colordiff Instead of aliasing
`colordiff` behaves better as `stdin` filter. This is useful in
retaining color escape sequences when used with `less`.
2021-06-24 17:45:29 -05:00
Indrajit Raychaudhuri
e07fd052d7 utility: Simplify conditional block for 'make' helper
Further, remove redundant `function` clause as per Prezto convention.
2021-05-21 13:33:07 -05:00
Indrajit Raychaudhuri
d3d79bbe74 utility: Use Zsh native mechanism to detect GNU 'du'
Skip additional call to `grep` and use Zsh native mechanism to detect
GNU version of `du`.

Further, Remove redundant `function` clause as per Prezto convention.
2021-05-21 13:33:07 -05:00
Indrajit Raychaudhuri
6eb4021556 utility: Remove redundant function clause in 'diff'
We don't use `function` clause in Prezto by convention.
2021-05-21 13:33:07 -05:00
Indrajit Raychaudhuri
d51e5ce40f utility: Always use 'git' fallback for 'wdiff' wrapper
Use `git` fallback (if present) even when color is off and `wdiff` is
not present.

Further, remove redundant `function` clause as per Prezto convention.
2021-05-21 13:33:07 -05:00
Diego Rabatone Oliveira
b3c27bb164 Replace git with 'command git' (#1551)
to improve performance if git is aliased to hub or other wrappers.
2018-03-05 00:56:25 -08: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
Samantha McVey
808d9d3579 Add zsh-help function for easily searching the zsh documentation (#1360)
* Add zsh-help function for easily searching the zsh documentation

Looks up things in the zsh documentation.
Usage: zsh-help [--all] search term(s)

Option --all will seach for the term anywhere, not just at the start of a
line. When not using --all it will search nicely for terms at the beginning
of the line, which in the zsh man pages is where terms that are explained
are located, allowing you to search the zsh man pages easily.

* Improve zsh-help to search section headings before other text

Provides a much easier way to search and access ZSH's manual. First checks for
terms at the start of the manual, then checks if it's at start of a line allowing
whitespace.

Clean up some of the code a bit and format it to have a proper header for the
zprezto project with author/email and description of the function.
2017-09-06 11:11:19 -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
Kaleb Elwert
7d5beeab51 Add comments into each of the function files to make them easier to find 2017-07-06 16:13:36 -07:00
Kaleb Elwert
38f0d2f34e Rework diff function
This removes --unified from the default options to make it possible to pass -y
without worrying about conflicting output formats.

diffu has also been added as an alias to make it easier to get output as a
unified diff.

Fixes #1231
2017-04-15 14:06:07 -07:00
Zhiming Wang
464a8d20a1 utility module: fix/improve colordiff call in diff
The new call is compatible with colordiff v1.0.8 - v.1.0.15 (might be
compatible with even earlier versions, but not tested), while the
original one breaks down under v1.0.14 and v1.0.15. See
https://github.com/daveewart/colordiff/issues/22.
2017-04-05 00:23:37 -07:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Sorin Ionescu
d0535dd2fd Simplify mkdcd completion 2012-09-30 16:05:36 -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
54e8b37c77 [Fix #196] Remove compdef calls 2012-06-13 18:04:33 -04:00
Sorin Ionescu
e4be6d633f [Fix #195] Fallback to the default command 2012-06-13 14:50:05 -04:00
Sorin Ionescu
7dc55a8304 [#195] Add missing make, diff, wdiff calls 2012-06-13 14:09:57 -04:00
Sorin Ionescu
218081becd [#149] Rename duh to dut 2012-06-10 20:04:56 -04:00
Sorin Ionescu
93e76b9e8d [#149] Move compdef calls into their own files 2012-06-10 20:04:55 -04:00
Sorin Ionescu
761ba12813 [#149] Simplify diff, wdiff, make 2012-06-10 20:04:55 -04:00
Sorin Ionescu
45ab153c64 [#149] Move diff, wdiff, make into their own files 2012-06-10 20:04:55 -04:00
Sorin Ionescu
7e60f13d7d Add spacing to increase readability 2012-05-21 16:24:39 -04:00
Sorin Ionescu
18ea11c096 [Fix #180] Print all file name columns 2012-05-19 12:05:42 -04:00
Sorin Ionescu
51439bdcaa Remove the reload utility function
The reload function no longer works since loaded modules cannot be
reloaded.
2012-04-12 10:33:38 -04:00
Sorin Ionescu
69b3d07923 [Fix #134] Check for GNU du instead of Linux 2012-04-12 10:20:33 -04:00
Sorin Ionescu
73478bd190 [#23] Convert utility into a module 2012-04-05 13:39:41 -04:00