Hello all
I am trying to put in some configs for our servers into the ~/.bash_profile and ~/.zshrc files of users. It will make connecting to our servers a bit easier for non technical folks with the use of aliases. I am writing a bash script that basically checks if the file exists, if it does it appends to the file, it the file doesn't exist it creates it and then adds the code block into the file.
However while searching my own mac i do not seem to have the ~/.bash_profile file . Has anyone does something similar using a script and are there anything things to look out for when doing