Last Updated: February 25, 2016
·
248
· serinpaul

Execute commands when shell opens up

Go to the terminal

$ vi .bash_profile

Bash profile opens up

Type in the commands to be executed when shell opens up

Example

cd /home/name or 
export HER_API_URL="http://localhost:3000/api"

all these will be default executed when terminal opens up, will be useful when need to execute repeated commands when terminal opens up.