How can I display a message when I cd
into a specific directory? This directory is a local one, and I just need a reminder when I go into it from the terminal.
Shell – Show message when cd into specific directory
cd-commandshell
cd-commandshell
How can I display a message when I cd
into a specific directory? This directory is a local one, and I just need a reminder when I go into it from the terminal.
Best Answer
If I were you, I would toy around with something like that in my shell configuration file (e.g.
~/.bashrc
):This way, you can add a
.cd-reminder
file in each directory you want to get a reminder for. The content of the file will be displayed after each successfulcd
to the directory.