Generalize default command to work with output lists.

Make default command take in 'history_columns' and 'profile_columns' as
arguments. Also add in default viewer of 'less' in case user has not defined
EDITOR.