SHTK_CONFIG_GET_DEFAULT(3)
π NAME π
okay bestie, welcome to the SHTK_CONFIG_GET_DEFAULT(3) page in the Library Functions Manual β¨
shtk_config_get_default β gets the value of a possibly-unset configuration variable π
π LIBRARY π
You get this by importing the config module, no cap:
shtk_import config
β¨ SYNOPSIS β¨
shtk_config_get_default var_name default_value
π«Ά DESCRIPTION π«Ά
The shtk_config_get_default function prints to stdout the value of the configuration variable var_name if it has been previously set β either by a call to shtk_config_set(3) within the script, or by the user in the configuration file. π
Otherwise? If the variable has not been set, the value it prints is default_value. That's the whole vibe: set config wins, unset config gets your fallback. π
π SEE ALSO π
shtk(3)β go read this one too, bestie πshtk_config(3)β and this one, fr fr π¦
πΈ HISTORY πΈ
shtk_config_get_default first appeared in shtk 1.0. β
Signed, sealed, and slayed: this is the SHTK_CONFIG_GET_DEFAULT(3) page from Debian, dated November 6, 2014 π
π¦ where this page comes from
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms