全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

description:sync gists with given description

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

all:systemctl search all fields

登录

全部 新建 登录

所有匹配主题的 Gist powershell

最近 创建
最早 创建
最近 更新
最早 更新

jetsung / 将 Linux 环境变量导入到 Windows

0 喜欢
0 派生
1 文件
最后活跃于 1 month ago
把 Linux 风格的 .myenv 文件(每行 export VAR=value)直接导入到 当前用户的 Windows 永久环境变量 中
powershell
1 <#
2 .SYNOPSIS
3 将 Linux 风格的 .env / .myenv 文件导入到 Windows 当前用户(或系统)环境变量
4 .USAGE
5 .\Import-LinuxEnv.ps1 -FilePath "C:\myconfig\.myenv"
6 .\Import-LinuxEnv.ps1 .\.myenv # 自动识别当前目录文件
7 .\Import-LinuxEnv.ps1 .\.myenv -System # 写入系统变量(需要管理员)
8 #>
9
10 param(

jetsung / Windows 终端配置初始化

0 喜欢
0 派生
5 文件
最后活跃于 1 month ago
启动 PowerShell 时自动加载的配置文件
powershell pwsh windows
1 #
2 # File: profile.ps1
3 # Description: PowerShell Profile,启动时自动加载
4 # Created: 2026-01-21 16:00:00
5 # Updated: 2026-01-21 16:46:00
6 #
7
8 # 获取脚本所在目录
9 $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 71ms⋅

中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 爱开发 ⋅ 爱开发社区