Change root in a bash shell.


/ Published in: Bash
Save to your folder(s)

This is for debian but can be adapted with little trickery to any Linux distro. This enables changing the root of a shell so that the directories displayed are not too long.

Useful for dir-verbose frameworks like symfony or when managing a huge website directory.

Usage: setroot $PWD

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.