The Environment Tab

Documentation / Contents - Location and Time

Other cards

The Environment Tab

Recording a locale in a file does nothing on its own. Programs read the environment. This tab is where you turn your settings into environment variables, by writing a block into your own shell startup file.

The tab has three parts, top to bottom: the export toggles, a preview of the block, and the shell startup file controls.

Session Exports

Three toggles in the box "Session exports:".

Export LANG      on by default
Export TZ        on by default
Export LC_ALL    off by default

Each toggle decides whether its line appears in the block below.

Export LC_ALL has no value field anywhere in this panel, and the LC_ALL line is written only when a value exists. Turning it on therefore does nothing unless you put env_lc_all into the configuration file by hand. See Files and Settings.

The Preview

The read-only pane below the toggles shows the exact block that would be written. It is set in the fixed-width face because a shell block is columnar and the export lines should line up. It updates as you change the toggles and the fields on the other tabs.

The block looks like this:

# BEGIN Cyanotype CyLocalize
# Managed by cylocalize - use Location and Time Preferences to change this block.
export LANG=en_US.UTF-8
export TZ=Europe/London
# END Cyanotype CyLocalize

The Shell Startup File

The box "Shell startup file:" holds the controls that touch your rc file.

Both buttons carry three dots, but neither opens a dialog. They act the moment you click them. Every message appears on the status line at the bottom of the window.

Which File Is Detected

The panel looks at your SHELL and tries a list of candidates, taking the first that exists:

zsh          ~/.zshrc, ~/.zprofile, ~/.zlogin
ksh          ~/.kshrc, ~/.profile
csh, tcsh    ~/.cshrc, ~/.tcshrc, ~/.login
sh           ~/.profile
anything else, including bash and an unset SHELL
             ~/.bashrc, ~/.bash_profile, ~/.profile

If none of them exist, the first candidate is used anyway and would be created.

The block is written in Bourne syntax, using export. A C shell wants setenv. Writing this block into a .cshrc or .tcshrc today produces lines that shell cannot use. C shell syntax is planned and not built.

How the Write Behaves

Removing takes the block out, along with the blank line before it, and leaves the rest untouched. Removing when there is no block succeeds quietly.

Next

Cyanotype Project. Blueprint Desktop. BSD 2-clause. Not affiliated with Silicon Graphics. SGI, IRIX, and Indigo Magic belong to their owners. 1.0 is aimed at 31 October 2026.