This allows the user to see only last level of the current path (if dirname is longer than 8 chars), and only first word of the ongoing command line if it's longer than 8 chars.
This allows the user to see only last level of the current path (if dirname is longer than 8 chars), and only first word of the ongoing command line if it's longer than 8 chars.