Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the prompt settings stored? #59

Open
Thraka opened this issue Feb 18, 2020 · 4 comments
Open

Where is the prompt settings stored? #59

Thraka opened this issue Feb 18, 2020 · 4 comments

Comments

@Thraka
Copy link

Thraka commented Feb 18, 2020

Back when I was using PowerShell on Windows I had customized the prompts a lot with PowerLine. I moved on to PowerShell Core about 5 months ago. I just decided to install the modules for PowerLine but when I import the module the old prompt I had back in PowerShell for Windows shows up.

I can't figure out how to get rid of the old prompt.

@DarkSeedRA
Copy link

I found it: C:\Users\YourUserID\AppData\Roaming\powershell\HuddledMasses.org\PowerLine\Configuration.psd1

@Jaykul
Copy link
Owner

Jaykul commented Jul 14, 2021

Sorry you had to find that on your own. I use the Configuration module, so you can always do: Get-Module PowerLine | Get-StoragePath to find the folder.

Of course, you can also just Set-PowerLinePrompt to get it the way you want, and then Export-PowerLinePrompt to save the configuration (I still don't like that command name, but I'm not sure what would be better).

@Lockszmith-GH
Copy link

Lockszmith-GH commented Oct 11, 2021

@Jaykul - how about using the Backup and Restore verbs?

So Set-PowerLinePrompt will be for setting, Restore-PowerLineConfiguration will be for explicitly restoring from a previously (or default) setup, Backup-PowerLineConfiguration will be for storing configuration using the Configuration Module.

This way there is a clear separation of tasks between the different verbs and commands

@Jaykul
Copy link
Owner

Jaykul commented Oct 24, 2021

I can see using Backup/Restore instead of Import/Export, but since we don't keep multiple sets of backups, it's a little misleading, don't you think? Honestly, I remembered the reason why PowerLine uses Import and Export is because that's the name of the commands we're wrapping in the Configuration module (where they make a little more sense).

I think what I want is for the Configuration module to support named sets of configuration, so I could Import-Configuration Dark for instance. Of course, that will be partly mirroring the EzTheme functionality, but I can live with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants