cdhistory: added 'list' argument
cdhistory: added 'list' argument

Returns a list of the paths in the history file, in descending order so that the
most visited paths are at the top of the list.

jdowner/cdhistory,jdowner/cdhistory