I am trying to run an sh (or bash) script that cd into a folder, run a few commands and keep me there so I can start using that terminal. The problem is I can't figure out how to keep me there. the bash command at the end opens the terminal in my home folder instead of /tmp:
#!/bin/sh
xterm -hold -e "cd /tmp && ls && bash" &
I would like to open a few terminals like this since I am working on a project that require multiple terminals (run backend service in one, frontend dev server in the other etc..)
Any ideas?
cd
s to your home directory?