File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1732,6 +1732,15 @@ function banner(io::IO = stdout; short = false)
1732
1732
end
1733
1733
end
1734
1734
1735
+ loaded_user_modules = filter (names (Main,imported= true )) do m
1736
+ typeof (getfield (Main, m)) <: Module && m ∉ (:Base , :Core , :Main )
1737
+ end
1738
+ if isempty (loaded_user_modules)
1739
+ loaded_modules_string = " "
1740
+ else
1741
+ loaded_modules_string = " Loaded packages: $(join (loaded_user_models, " , " )) "
1742
+ end
1743
+
1735
1744
commit_date = isempty (Base. GIT_VERSION_INFO. date_string) ? " " : " ($(split (Base. GIT_VERSION_INFO. date_string)[1 ]) )"
1736
1745
1737
1746
if get (io, :color , false ):: Bool
@@ -1756,7 +1765,7 @@ function banner(io::IO = stdout; short = false)
1756
1765
$(jl) | | | | | | |/ _` |$(tx) |
1757
1766
$(jl) | | |_| | | | (_| |$(tx) | Version $(VERSION )$(commit_date)
1758
1767
$(jl) _/ |\\ __'_|_|_|\\ __'_|$(tx) | $(commit_string)
1759
- $(jl) |__/$(tx) |
1768
+ $(jl) |__/$(tx) | $(loaded_modules_string)
1760
1769
1761
1770
""" )
1762
1771
end
You can’t perform that action at this time.
0 commit comments