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.
Written by Serin Paul
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#