diff --git a/README.new b/README.new index 0d0cb36b7..f0262b392 100644 --- a/README.new +++ b/README.new @@ -103,4 +103,7 @@ Lmod 8.7+ * Issue #617: Now print alias and de-refed module in module list and module -t list. * Issue #651: Allow -f and --force to be the same option for the lmod command (module) * Issue #654: Do not use install to copy symbolic links + (8.7.27) * PR #644: Created hook colorize_fullName to allow for sites to control how "module list" and "module av" + prints to the terminal. + diff --git a/contrib/Personal/SitePackage.lua b/contrib/Personal/SitePackage.lua index a38725f52..6047a0e6c 100644 --- a/contrib/Personal/SitePackage.lua +++ b/contrib/Personal/SitePackage.lua @@ -43,9 +43,9 @@ local function l_colorize_fullName(fullName, sn) local meta_color = getenv("LMOD_DISPLAY_META_COLOR") ---- colorize() will use `plain` if `color` is not found. - + local moduleName if (version) then - moduleName = moduleName .. colorize(version_color, "/"..version) + moduleName = colorize(sn_color, sn) .. colorize(version_color, "/"..version) else moduleName = colorize(meta_color, sn) end diff --git a/contrib/TACC/SitePackage.lua b/contrib/TACC/SitePackage.lua index 6c6608adf..a51c9da18 100644 --- a/contrib/TACC/SitePackage.lua +++ b/contrib/TACC/SitePackage.lua @@ -165,9 +165,9 @@ local function l_colorize_fullName(fullName, sn) local meta_color = getenv("LMOD_DISPLAY_META_COLOR") ---- colorize() will use `plain` if `color` is not found. - + local moduleName if (version) then - moduleName = moduleName .. colorize(version_color, "/"..version) + moduleName = colorize(sn_color, sn) .. colorize(version_color, "/"..version) else moduleName = colorize(meta_color, sn) end