canonical / canonical/powershell-snaps
System-wide profiles not writable
- Dominant language
- Python
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Similar to the initialization files `~/.bashrc` or `/etc/bash.bashrc` of the [`bash(1)`](https://manpages.ubuntu.com/manpages/en/man1/bash.1.html) shell, PowerShell also has initialization files.
For example on my system, I can find them in the following locations:
```
$PROFILE | Select-Object *
AllUsersAllHosts : /snap/powershell/294/opt/powershell/profile.ps1
AllUsersCurrentHost : /snap/powershell/294/opt/powershell/Microsoft.PowerShell_profile.ps1
CurrentUserAllHosts : /home/dviererbe/.config/powershell/profile.ps1
CurrentUserCurrentHost : /home/dviererbe/.config/powershell/Microsoft.PowerShell_profile.ps1
Length : 67
```
Due to the nature of how snaps work, `/snap/powershell/294/**` is a read-only file system. Therefore I am unable to change the system-wide initialization file.
The `AllUsersAllHosts` and `AllUsersCurrentHost` profile should be in a user writable location.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.