@which only reports filename instead of full path

When using @which julia does not report the full file, but only the file name.
Hence I cannot jump to the source code. I have installed julia via standard binary installer on nixos.

julia> @which show("hi")
show(x) in Base at show.jl:392

Does someone know how to fix this so that it outputs the full path?

julia> functionloc(show, (String, ))
("/Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/base/show.jl", 392)
1 Like