themes/pzq: Fix wrong usage of "echo -n"

This commit is contained in:
Koichi Murase
2022-08-30 11:18:17 +09:00
parent af18e3d41c
commit 0b52ce05c1

View File

@ -97,9 +97,9 @@ limited_pwd() {
if ((offset > 0)); then
local truncated_symbol='...'
local TRUNCATED_PWD=${RELATIVE_PWD:offset:MAX_PWD_LENGTH}
echo -e "${truncated_symbol}/${TRUNCATED_PWD#*/}"
echo -n "${truncated_symbol}/${TRUNCATED_PWD#*/}"
else
echo -e "${RELATIVE_PWD}"
echo -n "${RELATIVE_PWD}"
fi
}