• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Linux prompt display current directory only

February 11, 2022 by Ulysses

Here’s the command to display only the current directory.

export PROMPT_DIRTRIM=1

export PROMPT_DIRTRIM=1

Place the command in your ~/.bashrc to make it permanent.

Filed Under: Linux Tagged With: current, directory, display, only, prompt

Subscribe via email.

  • Home
  • About
  • Archives

Copyright © 2012–2022