I am logging every action performed in a bash script to a logfile. I would like to have cd
verbosely change directories so I can record the output to the log.
Kind of like this:
iMac:~ leetbacoon$ cd -v /new\ path
cd: /Users/leetbacoon -> /new path
iMac:new path leetbacoon$
Sadly cd
lacks a verbose flag. Any idea on how to get something like this to work?