HAPPYFAPTAIN/dsh-wsl-drive-links ↗★ 0
dsh-wsl-drive-links
将 WSL 中的 Windows 驱动器挂载点以符号链接暴露到主目录(如 ~/win-c → /mnt/c),让 DSH 的目录选择器与文件工具能轻松进入 Windows 文件夹。Expose Windows drive mounts in WSL as symlinks in the home directory (e.g. ~/win-c → /mnt/c) so DSH's directory picker and file tools can reach them easily.
AI Analysis
核心用途是打通 WSL 环境与 Windows 宿主机文件系统的访问通道。适合在 WSL 中运行 DSH,但需要频繁操作 Windows 盘符下文件的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
enabled | boolean | true | 总开关,false 时插件不做任何事 |
target | string | $HOME | 链接创建的目标目录 |
prefix | string | "win-" | 链接名前缀,"win-" 生成 win-c、win-d |
drives | string[] | null | 要处理的盘符列表(如 ["c", "d"]);缺省时自动检测全部 drvfs 挂载盘 |
update | boolean | true | 链接已存在但指向别处时是否修正(删除重建);false 时保留原样 |
示例:
- insert:
- id: wsl-drive-links
name: 'dsh-wsl-drive-links'
config:
prefix: 'win-'
drives: ['c', 'd']
使用
安装后主目录出现 win-c、win-d 等符号链接,在 DSH 的目录浏览对话框中直接点击即可进入对应 Windows 盘,随后选择任意文件夹作为工作区。符号链接只是入口,随时可以删除:
rm ~/win-c