Skip to content

Environmental variables

Ayooluwa Isaiah edited this page Feb 2, 2023 · 4 revisions

Another way to customize F2 is through environmental variables. They can be used to configure rarely changed settings once and for all.

F2_DEFAULT_OPTS

F2 supports changing the default options via the F2_DEFAULT_OPTS environmental variable. It allows you to configure frequently used options to your liking. For example, you can set execute mode to be the default, and include hidden files and directories for every renaming operation:

export F2_DEFAULT_OPTS='-x -H -d'

All the command-line options in F2 except --find, --replace, --csv, and --undo can be configured using F2_DEFAULT_OPTS.

F2_NO_COLOR, NO_COLOR

Either variable can be set in the environment to disable coloured output.

export F2_NO_COLOR=true
export NO_COLOR=true

F2_UPDATE_NOTIFIER

When this variable is set, F2 will automatically check for updates when the --version option is used.

export F2_UPDATE_NOTIFIER=true