Enjoying this site? Please to help keep the Snapstats.org lights on.
Description
Trims the current working directory to a maximum length by putting an ellipsis to the middle of the shortened result. For example:
cd /home/prantlf/Sources/private/shortpwd
$ shortpwd 5 10 ~/Sou...e/shortpwd