A command-line tool for managing CUDA versions, proxy settings, environment variables, and more on linux.
npm install -g @wangtao2001/lt# List all available CUDA versions
lt cuda list
# Switch to a specific CUDA version
lt cuda switch 11.8
lt cuda switch cuda-12.0# Set proxy
lt proxy set http://127.0.0.1:7890
# Unset proxy
lt proxy unset
# Show current proxy status
lt proxy status# List all environment variables
lt envs list
# List all environment variables with values
lt envs list -v
lt envs list --values
# Get specific environment variable (supports wildcards)
lt envs get PATH
lt envs get CUDA*
# Add new environment variable
lt envs add MY_VAR "my value"
# Modify environment variable
lt envs set MY_VAR "new value"
# Delete environment variable
lt envs delete MY_VAR# List all PATH components
lt envs path list
# Add directory to PATH
lt envs path add /usr/local/bin
# Remove directory from PATH
lt envs path delete /usr/local/bin
# Check if directory is in PATH
lt envs path check /usr/local/bin# Test network connectivity (access google.com)
lt t# Show help
lt --help
# Show version
lt --version
# Show subcommand help
lt cuda --help
lt proxy --help
lt envs --helpThe tool supports both Chinese and English, and will automatically select based on system language. You can also manually set it via environment variable:
# Use English
export LT_LANG=en
# Use Chinese
export LT_LANG=zh- After modifying environment variables, run
source ~/.zshrc(or~/.bashrc) or restart your terminal for changes to take effect - The tool automatically detects your current shell (bash or zsh)
- Language is automatically selected based on system
LANGenvironment variable, can be overridden withLT_LANG
MIT