Truncate working directory to fit remaining shell width.