Move display logic to fit function.

With this commit, the time-consuming call to system_profiler is made
only when the `fit` function is called, instead of every time a new
shell is opened.