Commit graph

48 commits

Author SHA1 Message Date
Indrajit Raychaudhuri a60499f933 [general] Miscellaneous cleanup and formatting 2017-08-04 13:45:56 -05:00
Indrajit Raychaudhuri 591d087ccc [completion] Allow ignores for '/etc/hosts' entries to be dynamic
By keeping the variable `_etc_host_ignores` around, it can be resolved
lazily which is turn should allow selective ignores on a per invocation
basis.

Also, `'\#'` doesn't need to be added to `_etc_host_ignores` anymore.
It is enforced inline.
2017-07-27 12:43:22 -05:00
Indrajit Raychaudhuri 9b6bf4a7cd [completion] Support ignoring '/etc/hosts' entries in host completion
Entries from static '/etc/hosts' can now be ignored via 'zstyle' based
configuration. Both IP address and corresponding hostname will be ignored
during host completion. However, some of the entries ignored from '/etc/hosts'
still might appear during completion because of their presence in 'ssh'
configuration ('~/.ssh/config') or history ('~/.ssh/ssh_hosts',
'~/.ssh/known_hosts' etc.).
2017-07-26 23:42:34 -05:00
Indrajit Raychaudhuri 6e1f4ddd19 [completion] Minor cleanup of zstyle completion 'tag-order'
De-duplicate common zstyle 'tag-order' for ssh, scp and rsync.
2017-07-10 10:47:54 -07:00
Indrajit Raychaudhuri 3f99519021 Prefer evaluation over test for arithmetic expression
Usage of `(( ... ))` over `[[ ... ]]` is preferred for arithmetic expression
since the former is less error prone.

Also, unset local variable whenever possible.
2017-07-08 00:32:31 -07:00
Samantha McVey f8f4953dce [completion] Bump external repository to version 0.25.0
8cdf60b Updated rkt commands and arguments
f9d7d9d Implemented autocompletion for rkt pods and images (Fixes #465)
9feab39 Added completion for yarn
a63a098 Update completion for mix, add completion for mix test, fix completion for mix help
6285e0e Add completions for bitcoin-cli
0ed2e86 Set proper description for gist -r
df5a3a1 Try to follow the style guide
d7a2972 Add gist completion for read flag
b0cb2ad Added _rclone
b7c11f4 drop ripgrep completion
907cba3 Update repository infos
ccb53f4 Support newer versions of OpenSSL
f02dc8f add licence information
ceaff68 Add completion for ffind
2017-06-22 10:35:44 -07:00
Kaleb Elwert 871b15663c Cache the completion for a quicker startup
The original idea was by @samjonester in #1210. This version aims to avoid
relying on the stat or date programs because they have different flags depending
on the OS and if it uses BSD or GNU coreutils.
2017-05-02 17:50:24 -07:00
Anton Löfgren 5c0e68f75f completion: Cap max-errors at 7 to avoid hanging (#953)
7 is pretty arbitrarily chosen, but seems like a reasonable tradeoff, at
least the completion no longer shows symptoms of exponential
time-growth when trying to complete something completely wrong.

This fixes #946.
2017-04-13 02:47:51 -07:00
Kaleb Elwert fd0b627a8b Update zsh-users submodules to latest stable versions 2017-04-04 23:00:28 -07:00
Sorin Ionescu 64aa907087 Update external completions 2016-02-28 22:31:21 -05:00
Sorin Ionescu e137068cac Update external completions 2015-11-09 02:08:40 -05:00
Scott Stevenson 6a812ed36b Correct typos in completion module 2015-05-19 17:50:40 -04:00
Sorin Ionescu 4016f0c7c1 Update external completions 2015-04-01 16:32:37 -04:00
Sorin Ionescu 88aee30ae8 [Fix #762] Use $LOGNAME instead of $USER
$USER is deprecated.
2015-02-13 00:00:27 -05:00
Sorin Ionescu 62d87cae32 Update external completions 2015-02-12 19:15:47 -05:00
Sorin Ionescu a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Jongwook Choi 62198b0326 Display full command line on suggestion for the kill command
For the zsh suggestion for the 'kill' command, show full command line
(command: usually with arguments) instead of only the executable name (comm).
2014-10-06 17:03:53 -04:00
Sorin Ionescu fe8f9a9b5b Update external completions 2014-10-05 20:14:25 -04:00
Sorin Ionescu 2ebdbdcff5 Update external completions 2013-11-29 20:37:01 -05:00
Sorin Ionescu 59e6e7fe8e Update external completions 2013-08-12 21:09:52 -04:00
Sorin Ionescu b42479a7c7 Set WORDCHARS in the editor module 2013-04-25 19:05:07 -04:00
Colin Hebert 18d239141d Update external completions 2013-04-24 20:50:38 -04:00
Sorin Ionescu 5d4282c43d [Fix #347] Move 'users' from tag-order to group-order 2012-12-23 11:27:39 -05:00
Sorin Ionescu e5cfdba26d Update external completions 2012-12-20 19:27:50 -05:00
Shahar Mintz decf3cd875 Fix auto completion for SSH hosts when saved with a non-standard port 2012-12-20 18:55:52 -05:00
Sorin Ionescu cefac28c58 Update external completions 2012-09-30 17:45:11 -04:00
Sorin Ionescu 8cdf06e386 [#255] Use $ZDOTDIR or $HOME 2012-09-03 16:51:32 -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 1ea238e276 [Fix #256] Rename .zcache to .zcompcache 2012-09-01 17:58:15 -04:00
Sorin Ionescu 3b87a4db48 Update external completions 2012-08-27 18:49:45 -04:00
Sorin Ionescu 9a52ecb21b Increase heading readability 2012-08-04 14:48:32 -04:00
Sorin Ionescu 060d9064f8 [Fix #202] Load modules all or nothing 2012-08-04 14:32:59 -04:00
Julien Stechele a2fcb36e5f Update completion module loading order 2012-06-17 13:34:21 -04:00
Sorin Ionescu b2b90c22f8 Improve diction in documentation 2012-06-02 17:17:12 -04:00
Sorin Ionescu 9f0501b140 Move the completion module loading information 2012-05-31 22:18:18 -04:00
Sorin Ionescu 075f516763 Clean up READMEs 2012-05-21 20:34:07 -04:00
Sorin Ionescu be2c8decdb Use $HOME instead of ~ 2012-05-20 20:15:34 -04:00
Sorin Ionescu c0f2007646 [Fix #135] Set completion default list-colors 2012-05-20 20:15:34 -04:00
Sorin Ionescu f4909ca507 [#135] Inform of the completion loading order 2012-05-20 20:15:34 -04:00
Sorin Ionescu c24273e4d2 Rename the completion module zstyle 2012-05-20 20:15:12 -04:00
Indrajit Raychaudhuri e79fc7a1aa Add IPv6 patterns to ignore list of host completion 2012-05-07 11:56:07 -04:00
Sorin Ionescu 5edd663510 [Fix #160] Exclude all words but the current one 2012-05-05 21:59:03 -04:00
Sorin Ionescu e5ec94af42 Check for non-empty files, not just existance 2012-05-05 18:08:25 -04:00
Colin Hebert 2859204067 [Fix #100] Add documentation for completion 2012-04-13 19:10:02 -04:00
Sorin Ionescu 9d8187ba6b Merge completions into functions
Completions are nothing more than auto-loadable functions prefixed with
an underscore placed somewhere in $FPATH.
2012-04-09 17:45:32 -04:00
Sorin Ionescu 6233ec6aad [#23] Add a module loading function 2012-04-08 15:07:11 -04:00
Sorin Ionescu 92816f6db7 [#23] Convert completion into a module 2012-04-05 13:39:42 -04:00
Sorin Ionescu a7340886b3 [#23] Rename plugins to modules 2012-04-05 13:39:40 -04:00