minor cleanup of environment-modules documentation (#814)
* minor cleanup of environment-modules documentation * environment modules: update usage instructions
This commit is contained in:
		 Denis Davydov
					Denis Davydov
				
			
				
					committed by
					
						 Todd Gamblin
						Todd Gamblin
					
				
			
			
				
	
			
			
			 Todd Gamblin
						Todd Gamblin
					
				
			
						parent
						
							ef9347bcfb
						
					
				
				
					commit
					a0989ad672
				
			| @@ -807,17 +807,22 @@ Environment Modules, you can get it with Spack: | ||||
|  | ||||
| 1. Install with:: | ||||
|  | ||||
| .. code-block:: sh | ||||
|  | ||||
|     spack install environment-modules | ||||
|  | ||||
| 2. Activate with:: | ||||
|  | ||||
|     MODULES_HOME=`spack location -i environment-modules` | ||||
|      MODULES_VERSION=`ls -1 $MODULES_HOME/Modules | head -1` | ||||
|      ${MODULES_HOME}/Modules/${MODULES_VERSION}/bin/add.modules | ||||
| Add the following two lines to your ``.bashrc`` profile (or similar): | ||||
|  | ||||
| .. code-block:: sh | ||||
|  | ||||
|    MODULES_HOME=`spack location -i environment-modules` | ||||
|    source ${MODULES_HOME}/Modules/init/bash | ||||
|  | ||||
| In case you use a Unix shell other than bash, substitute ``bash`` by | ||||
| the appropriate file in ``${MODULES_HOME}/Modules/init/``. | ||||
|  | ||||
| This adds to your ``.bashrc`` (or similar) files, enabling Environment | ||||
| Modules when you log in.  It will ask your permission before changing | ||||
| any files. | ||||
|  | ||||
| Spack and Environment Modules | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user