/home/nt-user/workspace
to prevent users from having to repetitively enter cd
commands.cd {{directory-path}}
where {{directory-path}}
is the path to the desired sub-directory. This will run for the first terminal that is open when the project starts and the cd /var/www/html
will be visible in the terminal. This can be configured for each terminal in the creator, but new terminals will default to /home/nt-user/workspace
. Read the next section on accomplishing this using a startup script to apply a this rule to new tabs created outside of the Creator.printf '\ncd {{directory-path}}\n' >> /home/nt-user/.bashrc
where {{directory-path}}
is the path to your directory (e.g., "/home/nt-user/workspace/hello-react").