prwd

A tool to print a reduced working directory

Fedora
RUN dnf install -y prwd
click the source code to copy install prwd on any operating system with command-not-found.com