pre generate sections of the configuration file

This commit is contained in:
fatalerrors
2026-03-11 17:20:50 +01:00
parent e82ee06e1d
commit 58cc76c317
2 changed files with 39 additions and 2 deletions

View File

@@ -11,12 +11,49 @@ PAGER=less
# Set terminal colors behavior
TERM=xterm-256color
[compress]
# Section used by compress.sh
[debug]
# Section used by debug.sh
[filefct]
# Section used by filefct.sh
[fun]
# Section used by fun.sh
[info]
# Section used by info.sh
# Default city for weather forcast
DEFAULT_CITY="Toulouse"
[lang]
# Section used by lang.sh
[net]
# Section used by net.sh
[packages]
# Section used by packages.sh
[prompt]
# Section used by prompt.sh
[pwd]
# Section used by pwd.sh
[rain]
# Section used by rain.sh
[ssh]
# Section used by ssh.sh
[updates]
# Section used by updates.sh
[general]
# General section allow to set any variable that can be used by the profile or its functions.
# General section allow to set any variable that can be used by the user.
# It is also a good place to set freely global variables for personal use.
# Set some compiling values
CFLAGS="-O2 -pipe -march=native"

View File

@@ -112,7 +112,7 @@ parse_conf()
value="${value%"${value##*[![:space:]]}"}"
value="${value#"${value%%[![:space:]]*}"}"
value="${value%$'\r'}"
# Strip quotes (handling both " and ')
value="${value%\"}"; value="${value#\"}"
value="${value%\'}"; value="${value#\'}"