Linux prompt display current directory only Feb 11, 2022 • Ulysses Here’s the command to display only the current directory. <pre lang="bash"> export PROMPT_DIRTRIM=1 Place the command in your ~/.bashrc to make it permanent.