Commit graph

38 commits

Author SHA1 Message Date
Matt Hamilton
7f22881dd1 Remove nonsensical 'security' check
For some reason, zshcompsys thinks that it is up to it do be a sysadmin.

By default, `compinit` checks for 'insecure' directories and files.

From `man 1 zshcompsys`:
For security reasons compinit also checks if the completion system would
use files not owned by root or by the current user, or files in directories
that are world- or group-writable or that are not owned by root or by
The current user.

People suffering from the rammifications of this can be found here:
http://www.wezm.net/technical/2008/09/zsh-cygwin-and-insecure-directories/
http://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories
http://www.zsh.org/mla/users/2008/msg00566.html
https://github.com/Homebrew/homebrew/issues/7801

To sumarize, if you have files with permissions that are 'bad'
(ex: 777 on /usr/share/folder/), then zshcompsys enables you to ignore
those directories and files.

That begs the question, why is it zshcompsys' job to police the system?
If you have 777 permissions on a folder in /usr/share/something, that
makes the sysadmin DUMB. On the flip side, there are many situations
in which it is perfectly legitimate to allow a group to have write
permissions to a directory that contains binary files.

It shouldn't be up to zshcompsys to point out that you're an idiot.

Running compaudit (the 'security' checks) also takes up a significant
chunk of time, which can be exacerbated on low-end systems.

This commit disables the compaudit, while still enabling the .zcompdump
as provided by compinit, as it acts as a cache.
2015-11-02 04:33:15 -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