Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, but mostly because it is not much longer than the above! Only got started using PowerShell more seriously (thanks to Windows Terminal and WSL) a couple of months ago.

Here is the other content:

  # For Agnoster theme, "user@host" will be hidden if user==DefaultUser
  $DefaultUser = "<YOUR USERNAME>"

  function vim ($File){
      bash -c "vim $File"
  }

  New-Alias pi ipython

  # git diff output uses less; it will be buggy without utf8
  $env:LESSCHARSET='UTF-8'

  # console output, e.g, when writing git diff output to file using pipe: | Out-File
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: