237dmitry
237dmitry
> My Ubuntu 22.04 box has Not all distributed versions of pwsh have these libraries ```powershell $ dir $pshome/lib* Directory: /opt/pwsh UnixMode Num UID GID LastWriteTime Size Name -------- ---...
> Expected behavior Quoted part of path also does not work in pwsh with native utilities:  But works with object: ``` $ $f = gi ~/Desktop/'a test' $ cat...
I could not reproduce on Linux: ```powershell dd if=/dev/zero of=./file.txt bs=100M count=1 function Measure-Memory { sls 'Rss' /proc/$pid/status -raw } function Test($File) { (Measure-Command { Get-Content $File | Out-Null }).TotalSeconds;...
> `date -d $date +%x` as a reference implementation ``` %x Date in standard format for locale 06/27/19 for English-US ``` [Get-Date](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powershell-7.4) From `man date`: ``` %x locale's date representation...
On Win-11: 
> pwsh.1.ronn Converted to `man` (troff) format, `ronn` requires a long list of dependencies (ruby etc). As for `man` itself: ```powershell $ pacman -Qi man-db | sls 'Depends' -raw Depends...
You can set all colors of `$PSStyle` and `Set-PSReadlineOption -Color` in external script files and dot-sourced them from `$profile`. For example: ```powershell switch ([int][datetime]::Now.DayOfWeek) { 0 { . mon.ps1 }...
> but typed text is still yellow ```powershell Set-PSReadlineOption -color @{ Command = "`e[37m" Comment = "`e[37m" ContinuationPrompt = "`e[37m" Default = "`e[37m" Emphasis = "`e[37m" Error = "`e[37m" InlinePrediction...
I do not understand what you want. If monochrome terminal you have to configure terminal, if monochrome Powershell you have to configure PowerShell. PS. The error lies in careless copy-paste.
> It looks like [NO_COLOR](https://no-color.org/) environment variable does what I want This doesn't work either from the console or from `~/.bashrc`. Maybe this depends on terminal emulator, `Tilix` in my...