Canop/broot

Username with one or more spaces causes an error

Fermée

#849 ouverte le 7 mars 2024

 (9 commentaires) (1 réaction) (0 personne assignée)Rust (213 forks)batch import
bughelp wantedwindows

Métriques du dépôt

Stars
 (9 383 étoiles)
Métriques de merge PR
 (Merge moyen 53m) (1 PR mergée en 30 j)

Description

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.

Guide contributeur