pre generate sections of the configuration file
This commit is contained in:
39
profile.conf
39
profile.conf
@@ -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"
|
||||
|
||||
@@ -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#\'}"
|
||||
|
||||
Reference in New Issue
Block a user