-
-
Notifications
You must be signed in to change notification settings - Fork 36
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 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
.
Either variable can be set in the environment to disable coloured output.
export F2_NO_COLOR=true
export NO_COLOR=true
When this variable is set, F2 will automatically check for updates when the
--version
option is used.
export F2_UPDATE_NOTIFIER=true