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
Post a Comment