Repository navigation
questionI edited the file: However, the changes don't seem to take effect. When I open a new tab, it still uses PowerShell instead of pwsh. contextNo response |
Replies: 5 comments 8 replies
|
I managed to get it working via this: [terminal]
default_shell = "C:\\Program Files\\PowerShell\\7\\pwsh.exe" |
|
I was able to use the following: [terminal]
default_shell = "pwsh"This will allow you to use pwsh regardless of your OS. I would suspect this follows typical Path enumeration so I'd check if I actually came here to see if we should push for it to be the default. Preferring pwsh (and frankly pushing it as the standard) will alleviate some of the maintenance burdens. Pwsh is cross platform and reduces the complexity for having to support Windows specific bits. It handles path resolution accurately across OS's. (e.g. |
|
If you have powershell installed through winget or as a Windows App, then the path will look slightly different: [terminal]
default_shell = "C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.6.4.0_x64__8wekyb3d8bbwe\\pwsh.exe"After updating the config you'll then need to run |
|
As far as I know I'm launching
WezTerm set to use pwsh.exe, then launching herdr, which is pwsh.
Both are using my $PROFILE where the module load is. Maybe that is the
issue just pwsh -> herdr -> pwsh
…On Tue, Aug 25, 2026, 21:07 Gilbert Sanchez ***@***.***> wrote:
My issue is that PSReadLine is not working. Not having history is a bit
annoying.
I haven't figured out why it doesn't work. It's loaded the commands work
like Get-History and the history save path. it works fine outside of herdr
launching in Terminal, WezTerm etc.
When an instance of powershell starts it sets an environment variable
$env:PsModulePath. If you have an application between two different version
calls the environment variable is still set which causes it to load the
wrong modules. E.g. powershell -> herdr -> pwsh. You'll want to launch from
a consistent version. I'll find the issue on the powershell repo when I
have a chance.
—
Reply to this email directly, view it on GitHub
<#892?email_source=notifications&email_token=AHQZUTMUVEVYPARJNLVUSGL5LZA47A5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOBRGU2TSMBVUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-18155905>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHQZUTLHB4SFFL4YWYCTSAT5LZA47AVCNFSNUABJKJSXA33TNF2G64TZHMYTCOJTHEYDSMBVGA5UI2LTMN2XG43JN5XDWMJQGM2DINZSG6QXMAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
#4297 now defaults to |
I managed to get it working via this: