home.social

#powershellcore — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #powershellcore, aggregated by home.social.

  1. I've been using #Tabby (formerly #Terminus) as my main #Terminal app for a while, and I've customized it quite a bit, so I thought I'd share some of my favorite #TabbyTweaks.

    1. A #PowerShell script that launches Tabby, waits for its #MainWindowHandle to appear, then hides it using #ShowWindowAsync #Win32 #API (see #GitHub link below)
    2. Docking setting enabled (I keep mine docked to the left edge of my main display)
    3. Ctrl+` hotkey mapped to "toggle (show/hide) terminal window"
    4. Custom #PowerShellCore, #WindowsPowerShell, #CMD, #WSL, and #SSH profiles (both admin and non-admin)
    5. #OhMyPosh running a slightly modified #froczh theme

    My "Start-TabbyHidden.ps1" script: github.com/JamesDBartlett3/Pos

    Oh-My-Posh: ohmyposh.dev

  2. I've been using #Tabby (formerly #Terminus) as my main #Terminal app for a while, and I've customized it quite a bit, so I thought I'd share some of my favorite #TabbyTweaks.

    1. A #PowerShell script that launches Tabby, waits for its #MainWindowHandle to appear, then hides it using #ShowWindowAsync #Win32 #API (see #GitHub link below)
    2. Docking setting enabled (I keep mine docked to the left edge of my main display)
    3. Ctrl+` hotkey mapped to "toggle (show/hide) terminal window"
    4. Custom #PowerShellCore, #WindowsPowerShell, #CMD, #WSL, and #SSH profiles (both admin and non-admin)
    5. #OhMyPosh running a slightly modified #froczh theme

    My "Start-TabbyHidden.ps1" script: github.com/JamesDBartlett3/Pos

    Oh-My-Posh: ohmyposh.dev

  3. I've been using #Tabby (formerly #Terminus) as my main #Terminal app for a while, and I've customized it quite a bit, so I thought I'd share some of my favorite #TabbyTweaks.

    1. A #PowerShell script that launches Tabby, waits for its #MainWindowHandle to appear, then hides it using #ShowWindowAsync #Win32 #API (see #GitHub link below)
    2. Docking setting enabled (I keep mine docked to the left edge of my main display)
    3. Ctrl+` hotkey mapped to "toggle (show/hide) terminal window"
    4. Custom #PowerShellCore, #WindowsPowerShell, #CMD, #WSL, and #SSH profiles (both admin and non-admin)
    5. #OhMyPosh running a slightly modified #froczh theme

    My "Start-TabbyHidden.ps1" script: github.com/JamesDBartlett3/Pos

    Oh-My-Posh: ohmyposh.dev

  4. I've been using #Tabby (formerly #Terminus) as my main #Terminal app for a while, and I've customized it quite a bit, so I thought I'd share some of my favorite #TabbyTweaks.

    1. A #PowerShell script that launches Tabby, waits for its #MainWindowHandle to appear, then hides it using #ShowWindowAsync #Win32 #API (see #GitHub link below)
    2. Docking setting enabled (I keep mine docked to the left edge of my main display)
    3. Ctrl+` hotkey mapped to "toggle (show/hide) terminal window"
    4. Custom #PowerShellCore, #WindowsPowerShell, #CMD, #WSL, and #SSH profiles (both admin and non-admin)
    5. #OhMyPosh running a slightly modified #froczh theme

    My "Start-TabbyHidden.ps1" script: github.com/JamesDBartlett3/Pos

    Oh-My-Posh: ohmyposh.dev

  5. I've been using (formerly ) as my main app for a while, and I've customized it quite a bit, so I thought I'd share some of my favorite .

    1. A script that launches Tabby, waits for its to appear, then hides it using (see link below)
    2. Docking setting enabled (I keep mine docked to the left edge of my main display)
    3. Ctrl+` hotkey mapped to "toggle (show/hide) terminal window"
    4. Custom , , , , and profiles (both admin and non-admin)
    5. running a slightly modified theme

    My "Start-TabbyHidden.ps1" script: github.com/JamesDBartlett3/Pos

    Oh-My-Posh: ohmyposh.dev

  6. Unter Windows sind viele Aufgaben per Tastatur flinker erledigt als per Mausschubserei. Mit der Eingabeaufforderung muss man sich schon lange nicht mehr plagen.
    FAQ: Power-Shell
  7. @aral

    For example, with PS7 (aka #PowerShellCore):
    echo 'Hello, world' | Out-File -Encoding UTF8 .\helloworld.txt && C:\cygwin64\bin\file.exe .\helloworld.txt
    .\helloworld.txt: ASCII text, with CRLF line terminators

    However, with PS6:
    echo 'Hello, world' | Out-File -Encoding UTF8 .\helloworld.txt; C:\cygwin64\bin\file.exe .\helloworld.txt
    .\helloworld.txt: UTF-8 Unicode (with BOM) text, with CRLF line terminators

    (yes, I actually had to use ; rather than && because PS6 doesn't support it...)

  8. @mjd @aral judging by the comments on stackoverflow.com/questions/48 even if you change the encoding for redirection in #PowerShell, it will still include the #ByteOrderMark. Though it might be possible in #PowerShellCore.

    Doesn't take away though that these are horrible defaults and should just work regardless of what terminal you use...