Indrajit Raychaudhuri
3fc54bf88a
general: Miscellaneous documentation updates
...
- Add missing documentation for options and environment variables
- Rearrange definition and documentation of 'Options', 'Variables'
and 'Aliases' in a consistent order
7 years ago
Indrajit Raychaudhuri
f30d954071
completion: Compact path to global ssh known hosts file
7 years ago
Alexander Neumann
a8fe3db3ca
Fix path to global ssh known hosts file
...
The path to the global known hosts file is /etc/ssh/ssh_known_hosts, not
/etc/ssh_hosts.
7 years ago
Indrajit Raychaudhuri
a60499f933
[general] Miscellaneous cleanup and formatting
8 years ago
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.
8 years ago
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.).
8 years ago
Indrajit Raychaudhuri
6e1f4ddd19
[completion] Minor cleanup of zstyle completion 'tag-order'
...
De-duplicate common zstyle 'tag-order' for ssh, scp and rsync.
8 years ago
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.
8 years ago
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.
8 years ago
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 .
8 years ago
Scott Stevenson
6a812ed36b
Correct typos in completion module
10 years ago
Sorin Ionescu
88aee30ae8
[ Fix #762 ] Use $LOGNAME instead of $USER
...
$USER is deprecated.
10 years ago
Sorin Ionescu
a84ac5b002
Only one newline at end of file
11 years ago
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).
11 years ago
Sorin Ionescu
b42479a7c7
Set WORDCHARS in the editor module
12 years ago
Sorin Ionescu
5d4282c43d
[ Fix #347 ] Move 'users' from tag-order to group-order
12 years ago
Shahar Mintz
decf3cd875
Fix auto completion for SSH hosts when saved with a non-standard port
12 years ago
Sorin Ionescu
8cdf06e386
[ #255 ] Use $ZDOTDIR or $HOME
13 years ago
Sorin Ionescu
fb9a20591f
[ Fix #197 ] Rebrand as Prezto
...
Conflicts:
README.md
runcoms/zshenv
13 years ago
Sorin Ionescu
1ea238e276
[ Fix #256 ] Rename .zcache to .zcompcache
13 years ago
Sorin Ionescu
3b87a4db48
Update external completions
13 years ago
Sorin Ionescu
9a52ecb21b
Increase heading readability
13 years ago
Sorin Ionescu
060d9064f8
[ Fix #202 ] Load modules all or nothing
13 years ago
Sorin Ionescu
be2c8decdb
Use $HOME instead of ~
13 years ago
Sorin Ionescu
c0f2007646
[ Fix #135 ] Set completion default list-colors
13 years ago
Sorin Ionescu
c24273e4d2
Rename the completion module zstyle
13 years ago
Indrajit Raychaudhuri
e79fc7a1aa
Add IPv6 patterns to ignore list of host completion
13 years ago
Sorin Ionescu
5edd663510
[ Fix #160 ] Exclude all words but the current one
13 years ago
Sorin Ionescu
e5ec94af42
Check for non-empty files, not just existance
13 years ago
Sorin Ionescu
6233ec6aad
[ #23 ] Add a module loading function
13 years ago
Sorin Ionescu
92816f6db7
[ #23 ] Convert completion into a module
13 years ago
Sorin Ionescu
647ac1ac00
Return 1 when a file fails to load
13 years ago
Sorin Ionescu
b96bbca51c
Added or edited file headers.
13 years ago
Sorin Ionescu
f0499b76c3
Use zstyle instead of variables for configuration.
13 years ago
Sorin Ionescu
9d27df2050
Tradition dictates that options are uppercase.
13 years ago
Sorin Ionescu
faeca82831
The functions directory should only hold functions.
13 years ago
Sorin Ionescu
65c5f613e1
Improved completion.
14 years ago
Sorin Ionescu
3fd9cf9f86
Renamed lib/ to functions/ and renamed files inside of it.
14 years ago
Sorin Ionescu
94ab5e0ec8
Cleaned up lib/ and removed trailing white space everywhere.
...
Conflicts:
oh-my-zsh.sh
14 years ago
Sorin Ionescu
f26a86795e
Disabled complist since it's crashing ZSH on menu completion.
14 years ago
Sorin Ionescu
deab2ed376
Fix for dumb terminals like Vim's.
14 years ago
Pat Regan
af0b6ac28f
Moved compinit call back to oh-my-zsh.sh, after plugins are loaded
14 years ago
Pat Regan
a56e12932f
Moved the single compinit call from oh-my-zsh.sh to lib/completion.zsh
14 years ago
Pat Regan
782883b5d8
Replace redundant calls to compinit with a single call.
14 years ago
Woody Gilk
88faaec7c9
Enable alias completion, do not limit completion to just files
14 years ago
Robby Russell
7b8cf376d1
Revert "Enable alias completion, do not limit completion to just files"
...
This reverts commit c3a58b00040018743ead1e6672910433fc1ca7c2.
14 years ago
gwjo
86ca51a6b7
Completion fixes
...
Use /etc/hosts in addtion to $HOME/.ssh/known_hosts as the source for
hostname completion
Turn on completion caching to speed up certain comands
When completing usernames, don't include system accounts by default
15 years ago
Tomas Kramar
3570f0d243
Do not complete named-directories
15 years ago
Robby Russell
4381863fd2
Removing legacy completion code
15 years ago
John Reese
ab010947ae
Ignore errors from compaudit when using `sudo -s`
15 years ago