Canop/broot

Username with one or more spaces causes an error

已关闭

#849 创建于 2024年3月7日

 (9 条评论) (1 个反应) (0 位负责人)Rust (213 个派生)batch import
bughelp wantedwindows

仓库指标

星标
 (9,383 个星标)
PR 合并指标
 (平均合并 53分钟) (30 天内合并 1 个 PR)

描述

Steps to reproduce

  1. (optional) change your username to include one or more spaces
  2. If you have already br installed, run br --install
  3. run broot --install
  4. the command above creates $HOME\Documents\WindowsPowershell\Profile.ps1 with the following contents (when username is "User Name")
. C:\Users\User\ Name\AppData\Roaming\dystroy\broot\config\launcher\powershell\br.ps1

Possible solution

Use $HOME environment variable instead so windows will automatically expand it on execution appropriately.

贡献者指南