-
What do i do with the file 'solo2.completions.powershell' ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Completions would, normally, go in your profile.ps1 file to be loaded when you start Powershell. You can use the $profile variable to find out where your profile script should be. Where does the solo2.completions.powershell file come from? It probably works the same as other completions. There's a discussion here about the github completions that might help. |
Beta Was this translation helpful? Give feedback.
-
dot-space, means that in order to load a powershell script without running it, you have to type a dot (i.e. '.') and a space, then the path to the script.
For example:
. c:\Temp\solo2.completions.powershell.ps1
/\ note the space between the '.' and the path.
And yes, powershell scripts normally have a '.ps1' extension, so it makes sense that you have to name it that.
-- Mark C
Sent with Tutanota, enjoy secure & ad-free emails.
Aug 2, 2022, 4:14 p.m. by ***@***.***:
…
It works, but first i have to rename the file to > solo2.completions.powershell**.ps1**
If i don't, it opens the "Open with"-dialogue of windows, where i have to choose an application.
>
> so it's dot-space...
>
>
What do you mean?
—
Reply to this email directly, > view it on GitHub <#80 (reply in thread)>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/AATKCRQXC56P2EUTELI5B2TVXF6RPANCNFSM532OUG2Q>> .
You are receiving this because you commented.> Message ID: > <solokeys/solo2-cli/repo-discussions/80/comments/3311005> @> github> .> com>
|
Beta Was this translation helpful? Give feedback.
-
You may be right, but since nobody who works on the project is answering I'm just guessing based on my knowledge of PowerShell and how it works.
The question is, did it work? ;-)
-- Mark C
Sent with Tutanota, enjoy secure & ad-free emails.
Aug 2, 2022, 4:43 p.m. by ***@***.***:
…
I just wonder why the file isn't named properly in the beginning. It seems to me like we are not using it as intended.
Otherwise i would mark your post as answer.
—
Reply to this email directly, > view it on GitHub <#80 (reply in thread)>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/AATKCRRBMAHL5YIDIXLXRNDVXGB6FANCNFSM532OUG2Q>> .
You are receiving this because you commented.> Message ID: > <solokeys/solo2-cli/repo-discussions/80/comments/3311138> @> github> .> com>
|
Beta Was this translation helpful? Give feedback.
Completions would, normally, go in your profile.ps1 file to be loaded when you start Powershell. You can use the $profile variable to find out where your profile script should be. Where does the solo2.completions.powershell file come from?
It probably works the same as other completions. There's a discussion here about the github completions that might help.