this repo contains an improved version of the bash command cd
.
- copy the code of the file
improved_cd.sh
- launch terminal and open
~/.bashrc
sudo nano ~/.bashrc
- paste the code at the end of the File and save it ->
Ctrl+x -> Return
- update the bash sources
source ~/.bashrc
cx - change and show directory contents.
cx [PATH] ... [OPTION]
The function will show all the content of each directory it encounters in the specified PATH
-ol - only show the contents of the last directory of the given PATH.
-hf - show hidden Files in directories.
-help - show this help page