aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-26 16:22:53 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-26 18:27:39 +0200
commitd55b226f191749282daba2c8c96315df993ecc3b (patch)
tree2b3c27e687194ea33d70f1ab34de2c1e612d1e99 /doc_src
parent95635a5982ec8ab234d925a4bb5025328a706fa3 (diff)
Document the rest of the electric/ro vars
Fixes #3072.
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/index.hdr.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in
index ee7fd825..2136a979 100644
--- a/doc_src/index.hdr.in
+++ b/doc_src/index.hdr.in
@@ -843,6 +843,14 @@ The user can change the settings of `fish` by changing the values of certain var
- `CMD_DURATION`, the runtime of the last command in milliseconds.
+- `FISH_VERSION`, the version of the currently running fish
+
+- `COLUMNS`, the current width of the terminal
+
+- `LINES`, the current height of the terminal
+
+- `SHLVL`, the level of nesting of shells
+
The names of these variables are mostly derived from the csh family of shells and differ from the ones used by Bourne style shells such as bash.
Variables whose name are in uppercase are exported to the commands started by fish, while those in lowercase are not exported. This rule is not enforced by fish, but it is good coding practice to use casing to distinguish between exported and unexported variables. `fish` also uses several variables internally. Such variables are prefixed with the string `__FISH` or `__fish.` These should never be used by the user. Changing their value may break fish.