Skip to content

Commit 6f603df

Browse files
committed
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
1 parent ff5bd93 commit 6f603df

File tree

10 files changed

+79
-25
lines changed

10 files changed

+79
-25
lines changed

modules/completion/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ the [zsh-completions][1] project.
66

77
This module must be loaded **after** the *utility* module.
88

9+
Options
10+
-------
11+
12+
- `COMPLETE_IN_WORD` complete from both ends of a word.
13+
- `ALWAYS_TO_END` move cursor to the end of a completed word.
14+
- `PATH_DIRS` perform path search even on command names with slashes.
15+
- `AUTO_MENU` show completion menu on a successive tab press.
16+
- `AUTO_LIST` automatically list choices on ambiguous completion.
17+
- `AUTO_PARAM_SLASH` if completed parameter is a directory, add a trailing slash.
18+
- `EXTENDED_GLOB` needed for file modification glob modifiers with compinit.
19+
- `MENU_COMPLETE` do not autoselect the first completion entry.
20+
- `FLOW_CONTROL` disable start/stop characters in shell editor.
21+
922
Settings
1023
--------
1124

modules/completion/init.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ zstyle ':completion:*:history-words' remove-all-dups yes
9999
zstyle ':completion:*:history-words' list false
100100
zstyle ':completion:*:history-words' menu yes
101101

102-
# Environmental Variables
102+
# Environment Variables
103103
zstyle ':completion::*:(-command-|export):*' fake-parameters ${${${_comps[(I)-value-*]#*,}%%,*}:#-*-}
104104

105105
# Populate hostname completion. But allow ignoring custom entries from static

modules/editor/README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
Editor
22
======
33

4-
Sets key bindings.
4+
Sets editor specific key bindings options and variables.
5+
6+
Options
7+
-------
8+
9+
- `BEEP` beep on error in line editor.
10+
11+
Variables
12+
---------
13+
14+
- `WORDCHARS` treat a given set of characters as part of a word.
515

616
Settings
717
--------

modules/environment/README.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,38 @@ Sets general shell options and defines environment variables.
55

66
This module must be loaded first.
77

8-
Environment Variables
9-
---------------------
8+
Options
9+
-------
10+
11+
### General
12+
13+
- `COMBINING_CHARS` combine zero-length punctuation characters (accents) with
14+
the base character.
15+
- `INTERACTIVE_COMMENTS` enable comments in interactive shell.
16+
- `RC_QUOTES` allow 'Henry''s Garage' instead of 'Henry'\''s Garage'.
17+
- `MAIL_WARNING` don't print a warning message if a mail file has been accessed.
18+
19+
### Jobs
20+
21+
- `LONG_LIST_JOBS` list jobs in the long format by default.
22+
- `AUTO_RESUME` attempt to resume existing job before creating a new process.
23+
- `NOTIFY` report status of background jobs immediately.
24+
- `BG_NICE` don't run all background jobs at a lower priority.
25+
- `HUP` don't kill jobs on shell exit.
26+
- `CHECK_JOBS` don't report on jobs when shell exit.
27+
28+
Variables
29+
---------
30+
31+
### Termcap
32+
33+
- `LESS_TERMCAP_mb` begins blinking.
34+
- `LESS_TERMCAP_md` begins bold.
35+
- `LESS_TERMCAP_me` ends mode.
36+
- `LESS_TERMCAP_se` ends standout-mode.
37+
- `LESS_TERMCAP_so` begins standout-mode.
38+
- `LESS_TERMCAP_ue` ends underline.
39+
- `LESS_TERMCAP_us` begins underline.
1040

1141
Contributors
1242
------------

modules/history/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ History
33

44
Sets [history][1] options and defines history aliases.
55

6-
Variables
7-
---------
8-
9-
- `HISTFILE` stores the path to the history file.
10-
- `HISTSIZE` stores the maximum number of events to save in the internal history.
11-
- `SAVEHIST` stores the maximum number of events to save in the history file.
12-
136
Options
147
-------
158

@@ -26,6 +19,13 @@ Options
2619
- `HIST_VERIFY` does not execute immediately upon history expansion.
2720
- `HIST_BEEP` beeps when accessing non-existent history.
2821

22+
Variables
23+
---------
24+
25+
- `HISTFILE` stores the path to the history file.
26+
- `HISTSIZE` stores the maximum number of events to save in the internal history.
27+
- `SAVEHIST` stores the maximum number of events to save in the history file.
28+
2929
Aliases
3030
-------
3131

modules/history/init.zsh

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
# Sorin Ionescu <sorin.ionescu@gmail.com>
77
#
88

9-
#
10-
# Variables
11-
#
12-
13-
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
14-
HISTSIZE=10000 # The maximum number of events to save in the internal history.
15-
SAVEHIST=10000 # The maximum number of events to save in the history file.
16-
179
#
1810
# Options
1911
#
@@ -31,6 +23,14 @@ setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history
3123
setopt HIST_VERIFY # Do not execute immediately upon history expansion.
3224
setopt HIST_BEEP # Beep when accessing non-existent history.
3325

26+
#
27+
# Variables
28+
#
29+
30+
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
31+
HISTSIZE=10000 # The maximum number of events to save in the internal history.
32+
SAVEHIST=10000 # The maximum number of events to save in the history file.
33+
3434
#
3535
# Aliases
3636
#

modules/homebrew/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Homebrew
22
========
33

4-
Defines Homebrew specific shell environment variables and aliases.
4+
Defines Homebrew specific environment variables and aliases.
55

6-
Environment Variables
7-
---------------------
6+
Variables
7+
---------
88

99
Execute the following to list the environment variables loaded in the shell:
1010

modules/homebrew/init.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [[ "$OSTYPE" != (darwin|linux)* ]]; then
1111
fi
1212

1313
#
14-
# Environmental Variables
14+
# Variables
1515
#
1616

1717
# Load standard Homebrew shellenv into the shell session.

modules/rsync/init.zsh

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ fi
1414
# Aliases
1515
#
1616

17-
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
17+
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive \
18+
--hard-links --one-file-system'
1819

1920
if grep -q 'xattrs' <(rsync --help 2>&1); then
2021
_rsync_cmd="${_rsync_cmd} --acls --xattrs"

runcoms/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ in */etc* by default.
1010

1111
User-local configuration files have the same name as their global counterparts
1212
but are prefixed with a dot (hidden). Zsh looks for these files in the path
13-
stored in the `$ZDOTDIR` environmental variable. However, if said variable is
13+
stored in the `$ZDOTDIR` environment variable. However, if said variable is
1414
not defined, Zsh will use the user's home directory.
1515

1616
File Descriptions

0 commit comments

Comments
 (0)