I am leaning python and I need to set some things each time I start the terminal
#!/bin/bash alias python=python3 export PS1='>' echo "hello"
I want to use these initializations just for my python experimentation.
In order to save myself some effort I made a bash file which I run as "./init".
I put in the echo command just to see that I am indeed running the file. The hello message appears but the alias and export commands seem to be alive just for the during of the bash commands. When the file has completed with the echo hello, I type python -V and I get python 2 and not python 3. If I do the align manually, it works until I exit out of the terminal.
There are other initialization commands I want to use and a bash file seems the proper way to go. (There is also bashrc if that is what I should be using?) I must be missing something stupid in that it doesn't work.