In Linux how to restrict to show last 2 path in terminal

 


Open your .bashrc file by running command nano ~/.bashrc


Add this line at the end:  export PROMPT_DIRTRIM=2



Save and exit (Ctrl + O, Enter, then Ctrl + X).


Apply the changes by running below command

source ~/.bashrc


Comments

Popular posts from this blog

How to build MCP Server and use MCP Inspector in Node

How to install ngrok in wsl for activepieces

How to set new password in WSL