How can I show only my current directory in bash
March 11, 2010 Leave a comment
In projects with deep directory hierarchy the abosolute path became noisier, especially if you’re using many terminals side by side. To change it you can edit your .bashrc to set it to show only the current directory.
sed -i "s/\\\w\\\/\\\W\\\/g" ~/.bashrc