|
Well, the type of file you describe is more the type of thing you'd put in your ~/.bashrc file, or the file that holds some configuration that you want available at each login. In order to make those aliases available, you wouldn't need to execute the script, just 'source' the script on boot. So what I'd do is create a file called ~/.bashrc and put the same alias lines in, and the next time you login those aliases will be available for use.
Other than that, I'd guess that the reason you weren't able to use the file is because you didn't actually save it to ~/bin/myenv. If you added ~/bin to your PATH, the directory must exist, and all scripts and binaries you want to use must be within that directory.
|