From 6bb05e7c4a2163426852a25089909e49b584ff85 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 8 Jun 2020 20:47:20 +0300 Subject: [PATCH] Fix(short_curdir): Count ellipsis --- admin/prog/short_curdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/prog/short_curdir b/admin/prog/short_curdir index 62ede06..315543d 100644 --- a/admin/prog/short_curdir +++ b/admin/prog/short_curdir @@ -9,7 +9,7 @@ short_curdir() { fi local _short_curdir _short_curdir="${PWD##*/}" # cut all directories, get base name - if [ "${#_short_curdir}" -gt 15 ]; then + if [ "${#_short_curdir}" -gt 18 ]; then _short_curdir="${_short_curdir::15}..." # cut long string fi echo "${_short_curdir}" -- 2.39.5