question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Default profile for powershell

See original GitHub issue

Hi,

I spent always long minutes to setup terminal for people and i didn’t understand why the following profile is not the default one for powershell :

Import-Module PSReadLine

Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -predictionsource history
Set-PSReadLineOption -HistorySearchCursorMovesToEnd 

It requiert “PSReadLine 2.1.0-beta2” (didn’t know why these features are just in beta, because they exist on every other OS since many years, but that’s not the point.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
vexx32commented, Sep 28, 2020

The only one in beta currently as far as I’m aware is the -PredictionSource option.

As for the rest, the default settings are handled by PSReadLine itself, so it might be better to ask in that repository instead of this one. 🙂

1reaction
jhoneillcommented, Sep 29, 2020

Those have been the default options for PowerShell since windows PowerShell V1. On linux default tab behaviour is different and setting edit mode allows you to get a different one. TBH, it is so ingrained for every existing PowerShell user , and included in so many documents that changing it to someone else’s preference has very little chance of happening. I’d leave users to set their own preferences, most of us have our own customizations and I would impose mine on my user community.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerShell Profile : A Getting Started Guide
A newly-created PowerShell profile is blank by default. You can include variables, aliases, and commands you frequently use in your PowerShell ...
Read more >
about Profiles - PowerShell
A PowerShell profile is a script that runs when PowerShell starts. You can use the profile as a startup script to customize your...
Read more >
Persistent PowerShell: The PowerShell Profile - Simple Talk
Profiles are PowerShell scripts that run at startup, ... the other three profile property names to access one of the non-default profiles.
Read more >
Terminal Profiles in Visual Studio Code
Configure your default profile by running the Terminal: Select Default Profile command, which is also accessible via the new terminal dropdown. Select Default...
Read more >
Is it possible to start Powershell ISE with specified (not ...
I want to have several (more than one) PowerShell profiles which will create different environments. More specifically I need way for start ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found