Skip to content
/ wmod Public

An environment management tool for Windows that provides Lmod-like functionality.

License

Notifications You must be signed in to change notification settings

Chen1Plus/wmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wmod

An environment manage tool on windows, providing Lmod-like experiences.

Warning

This module is alpha and not fully tested. Currently, I just test it on PowerShell 7.

Installation

Copy the whole repository to PowerShell module path and change the value of Wmod_Path in wmod.psm1 to your install location.

Usage

# List available modules
Wmod-Avail

# Load/Unload a module
Wmod-Load $moduleName $version
Wmod-Unload $moduleName $version

# Unload all modules
Wmod-Purge

# List loaded modules
Wmod-List

How to write a module file

This is an example. I have LLVM 18 installed at C:\Program Files\LLVM.

$Path = 'C:\Program Files\LLVM\bin;'
$EnvVars = @{
    'LLVM_HOME' = 'C:\Program Files\LLVM'
}

You should place the file at <Install Location>\ModuleFiles\<moduleName>\<version>.ps1.

About

An environment management tool for Windows that provides Lmod-like functionality.

Resources

License

Stars

Watchers

Forks

Packages

No packages published