I want to open an instance of a terminal emulator (in my case term
) and go to a specific directory, all with a single Elisp function. My idea was to send a specific string programmatically to the shell, telling it to change to a specific directory. But I don't know how I should do it, and I've not been able to find an alternative (like sending the cd
command as the shell is opened).
How can I achieve this?