1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-12 22:21:13 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
Kaleb Elwert
742260b55f Remove support for pydf to make options more consistent
Closes #1388
2018-02-21 14:10:11 -08:00
Kaleb Elwert
82d3265ad5 utility: remove usage of noremoteglob until bugs can be fixed
Fixes #1443, #1521
2017-12-18 13:35:23 -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
Andrew Breckenridge
34d4897d0e Updates outdate Mac OS X to macOS 2017-09-07 11:30:05 -07: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
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
608f291ad3 [utility] Reuse interactive aliases when 'safe-ops' is set
When `safe-ops` is set, we can reuse the aliases that are already available.
2017-07-21 09:35:14 -07: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
Indrajit Raychaudhuri
f236344fc8 [utility] Remove premature call to compdef
This is a temporary fix to work-around a minor regression in 90071d3.
2017-07-15 00:54:15 -05:00
Kaleb Elwert
90071d3ad0 utility: fix completion for rsync and scp 2017-07-14 13:28:29 -07:00
Kaleb Elwert
17bc7530ba Update documentation on safeops 2017-07-11 11:58:56 -07:00
Kaleb Elwert
aad91beb3c [utility] Move the safeops aliases into their own section and add XXi variants 2017-07-11 11:52:47 -07:00
Samantha McVey
2a75fba6a8 [utility] Add safe-ops zstyle option to disable safe rm/cp/ln/mv
Currently rm/cp/ln/mv are aliased to rm/cp/ln/mv -i so that it will
prompt before removing files.

Some people would not like this functionality and wish for an easy way to
disable it. This adds a new option:

zstyle ':prezto:module:utility' safe-ops yes/no

It is enabled by default even if zstyle is not set, but can be set to no
to disable these aliases.

This should resolve issue #205
2017-07-11 11:48:05 -07: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
Samantha McVey
a876890afd [utility] scp/rsync glob local paths but don't glob remote paths
Adds a function which wraps rsync and scp so that remote paths are not globbed
but local paths are globbed. This is because the programs have their own
globbing for remote paths. The wrap function globs args starting in / and ./
and doesn't glob paths with : in it as these are interpreted as remote paths
by these programs unless the path starts with / or ./

Fixes issue #1125
2017-07-03 17:20:34 -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
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
Kyle Rich
4e35f701ca Add "sa" alias to make it easy to search aliases 2017-04-04 21:11:36 -07:00
Eduard Zintz
8913bcccd2 Use python3 for http-serve alias if available (#1193) 2017-04-03 13:27:06 -07:00
Sorin Ionescu
cd5067668c Substitute command when alias is undefined 2015-05-19 18:24:04 -04:00
Sorin Ionescu
b41f485528 Add missing parenthesis
The bug was introduced in 933c61b.
2015-02-22 23:52:41 -05:00
Sorin Ionescu
933c61b8f1 [Fix #776] Support GNU top 2015-02-22 21:42:11 -05:00
Sorin Ionescu
88aee30ae8 [Fix #762] Use $LOGNAME instead of $USER
$USER is deprecated.
2015-02-13 00:00:27 -05:00
Sorin Ionescu
ba351df9fb [Fix #748] Set grep color for BSD and GNU 2014-12-08 18:13:25 -05:00
Sorin Ionescu
9539341e1e [Fix #732] Replace $GREP_OPTIONS with an alias 2014-11-24 13:05:34 -05:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
eukaryote
493bf302f6 Ensure dircolors uses sh syntax
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-10-05 21:12:54 -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
80ded5e33d Revert "Remove utility aliases for Cygwin"
This reverts commit d368d0536b.
2014-01-04 17:30:37 -05:00
Sorin Ionescu
d368d0536b Remove utility aliases for Cygwin 2013-11-29 08:46:14 -05:00
Sorin Ionescu
959887013d Simplify a conditional 2013-08-20 08:47:18 -04:00
Sorin Ionescu
b769505857 Remove duplicate alias definitions 2013-08-20 08:46:37 -04:00
Nicholas Hutchinson
622e7b117b Add utility aliases for Cygwin
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-08-20 08:35:55 -04:00
Sorin Ionescu
d0535dd2fd Simplify mkdcd completion 2012-09-30 16:05:36 -04:00
Sorin Ionescu
c8b82afeec Increase readability in utility init 2012-09-11 02:03:32 -04:00
Sorin Ionescu
38d1875020 Match BSD ls colors to Linux ls colors 2012-09-11 01:59:04 -04:00
Sorin Ionescu
bc4351cfab [Fix #283] Define $LS_COLORS for completion 2012-09-11 01:57:28 -04:00
Sorin Ionescu
e5e26eccff [#245] Convert helper into a module 2012-09-08 19:23:33 -04:00
Sorin Ionescu
209846011f [Fix #267] Fix psu on non-Mac OS X systems 2012-09-06 23:43:40 -04: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
2f4f11bd40 Use $VISUAL and fallback on $EDITOR for the e alias 2012-08-28 23:58:09 -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
9a52ecb21b Increase heading readability 2012-08-04 14:48:32 -04:00
Sorin Ionescu
34ca75cdf2 [Fix #210] Rename alias lp to lm 2012-06-23 13:09:55 -04:00