This is a simple shell script, just create it and fill it with the desired content.
man bash describes for what (initialization) Bash files it looks, under what circumstances and in what order it does it for your specific version of Bash.
source share