2 if [ "$PWD" = / ]; then
6 if [ "$PWD" = "$HOME" ]; then
11 _short_curdir="${PWD##*/}" # cut all directories, get base name
12 if [ "${#_short_curdir}" -gt 18 ]; then
13 _short_curdir="${_short_curdir::15}..." # cut long string
15 echo "${_short_curdir}"