Skip to content

Update for PowerShell 6 (Core) and Visual Studio Code#1046

Merged
ben merged 6 commits intoprogit:masterfrom
agowa:agowa338-patch-1
May 9, 2018
Merged

Update for PowerShell 6 (Core) and Visual Studio Code#1046
ben merged 6 commits intoprogit:masterfrom
agowa:agowa338-patch-1

Conversation

@agowa
Copy link
Copy Markdown
Contributor

@agowa agowa commented Apr 30, 2018

Visual Studio Code

Mention Visual Studio Code within the GUI section, as it is getting more popular these days.

Update for PowerShell 6

Update for PowerShell 6 (Core) and add cross platform support. Currently the "prompt" function set by Posh-Git in PowerShell Core is a little bugged, but I'm sure they will fix it soonish.

Klaus Frank added 4 commits April 30, 2018 11:35
Fix typing error actually it is "AllUsers" and not "LocalMachine for "Install-Module". Sorry for that mistake, I've mixed that up in my last commit.
Visual Studio Code
Update for PowerShell 6 (Core) and add cross platform support. Currently the "prompt" function set by Posh-Git in PowerShell Core is a little bugged, but I'm sure they will fix it soonish.
mini typo fix

Probably one of the best cross platform gui clients for git. https://code.visualstudio.com[Visual Studio Code] is an extensible Text Editor featuring git integration a debugger. There are all kind of plugins for all different programming languages and features. A very popular Plugin is https://github.com/VSCodeVim/Vim[VSCodeVim] which provides VI key strokes for the editor. Also all (actually more than through the gui) are available by Keystrokes or "command mode".
If you instead want to write your own plugin, you can do this by using TypeScript and JavaScript.
Settings are stored on multiple locations, one includes ".vscode" within your repository, for project specific settings, like enable/disable linting only for this project.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of editors with Git integrations. If we're going to mention Code, we'll also have to mention Atom, Eclipse, IntelliJ and family, Vim, Emacs with Magit, Visual Studio, Xamarin Studio, XCode… This is a can of worms, and we need to think pretty hard about how to address this (very real) use case.

Let's drop this bit for now, we should come back to it later with a bigger strategy in mind.

(((powershell)))(((tab completion, powershell)))(((shell prompts, powershell)))
(((posh-git)))
The standard command-line terminal on Windows (`cmd.exe`) isn't really capable of a customized Git experience, but if you're using Powershell, you're in luck.
The legacy command-line terminal on Windows (`cmd.exe`) isn't really capable of a customized Git experience, but if you're using Powershell, you're in luck. This also works if you're running PowerShell on any other platform than Windows like Debian.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things:

  1. Could you reformat so that every sentence is on its own line? It simplifies the diffs in the future.

  2. Let's reword this a tiny bit:

This also works if you're running PowerShell on a non-Windows platform, such as Debian.

-----
If you want to install Posh-Git only for the currnet user and not globaly, use "-Scope CurrentUser" instead.
If you want to install Posh-Git only for the current user and not globally, use "-Scope CurrentUser" instead.
If the 2nd command fails with the message `Update-Module : Module 'PowerShellGet' was not installed by using Install-Module, so it cannot be updated.` You need to run: `Install-Module PowerShellGet -Force -SkipPublisherCheck` instead. This happens, because the modules that ship with Windows Powershell are signed with a different publishment certificate.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above about one-line-per-sentence formatting. Also, can I tweak the wording a bit?

If the second command fails with an error like `Module 'PowerShellGet' was not installed by using Install-Module`, you'll need to run another command first:

[source,powershell]
----
> Install-Module PowerShellGet -Force -SkipPublisherCheck
----

Then you can go back and try again.

Klaus Frank added 2 commits May 9, 2018 23:10
implementing feedback
Split long lines into separate ones and rephrase some things as suggested by contributor.
@agowa
Copy link
Copy Markdown
Contributor Author

agowa commented May 9, 2018

I've updated according to your suggestions.

@ben
Copy link
Copy Markdown
Member

ben commented May 9, 2018

Lovely, thanks!

@ben ben merged commit 1a88b5d into progit:master May 9, 2018
@jnavila jnavila added the translation backport Tags a PR for translators to backport in their own repo label May 10, 2018
@agowa agowa deleted the agowa338-patch-1 branch May 17, 2018 07:13
aollier added a commit to aollier/progit2-fr that referenced this pull request Oct 31, 2018
aollier added a commit to aollier/progit2-fr that referenced this pull request Oct 31, 2018
aollier added a commit to aollier/progit2-fr that referenced this pull request Oct 31, 2018
aollier added a commit to aollier/progit2-fr that referenced this pull request Oct 31, 2018
aollier added a commit to aollier/progit2-fr that referenced this pull request Nov 1, 2018
aollier added a commit to aollier/progit2-fr that referenced this pull request Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

translation backport Tags a PR for translators to backport in their own repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants