Customize show for repl

I want to customize how Ints are printed in my repl.

I looked at Types · The Julia Language and The Julia REPL · The Julia Language

I tried

show(io::IO, ::MIME"text/plain", x::Int) = print(io, "Int--$(x)--")

but that doesn’t affect how it’s represented in the repl.

julia> 3
3
julia> Base.show(io::IO, ::MIME"text/plain", x::Int) = print(io, "Int--$(x)--")

julia> 3
Int--3--
1 Like