diff --git a/profile.conf b/profile.conf index 745e2b2..0e42d94 100755 --- a/profile.conf +++ b/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" diff --git a/profile.sh b/profile.sh index 9dc9058..aa4d76d 100644 --- a/profile.sh +++ b/profile.sh @@ -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#\'}"