Questions tagged [posh-git]

A PowerShell environment for Git, providing prompt status, tab expansion, and helpful functions.

posh-git is PowerShell module that provides support for Git similar to what is provided by default with Git Bash. Details at https://github.com/dahlbyk/posh-git

83 questions
2
votes
3 answers

Icons not showing in powershell after installing posh-git

Today I installed posh-git in the PowerShell but the icons are not showing instead showing a rectangle box with a question mark inside. Below are the steps I followed to: Install-Module oh-my-posh -Scope CurrentUser then Install-Module posh-git…
2
votes
3 answers

How do I remove the cruft at the start of my posh-git window title?

I'm using posh-git for my powershell window, and the prompt is perfect: S:\Repos\DevTools [master ≡ +1 ~2 -0 !]> But the title of the window has extra cruft at the start: posh~git ~ DevTools [master] Does anyone know how I can get rid of the extra…
2
votes
0 answers

Powershell shuffling output messages when issuing meteor update command

I have installed in windows 10 posh-git v0.7.0 environment to powershell to augment its functionality. Unfortunately when issuing the meteor update inside powershell the output in the terminal is terribly shuffled making it very hard to understand…
Prophet Daniel
  • 327
  • 2
  • 15
2
votes
3 answers

How can I accept all remote files in a specific folder during a git merge?

We're using posh-git on Windows Powershell for source control. We're in the unenviable position of storing some of our built assemblies in our git repo. I know all the sermons on why you shouldn't do that, but we have to live with it for now. …
bopapa_1979
  • 8,949
  • 10
  • 51
  • 76
2
votes
1 answer

Don't colorize the refs with git log --pretty when --no-color is specified

I'm working with Git, using Windows 7, PowerShell, and Posh-Git. I have the following alias setup: ls = log --pretty=tformat:"%C(yellow)%h\\ %C(green)[%ad]%C(cyan)\\ <%cn>\\ %C(reset)%s%C(auto)%d" The problem was that when I pipe the output to…
AdmSteck
  • 1,753
  • 15
  • 25
2
votes
3 answers

ssh-keygen: The System Cannot Find the Path Specified

ssh-agent, ssh-add all works on Cmder running PowerShell/Posh-Git I have added C:\Program Files\Git\usr\bin Environment Variables ssh-keyen works fine on Git Bash, how can I make ssh-keygen to also work with Powershell/Posh-Git ? EDIT: It turns…
cusX
  • 470
  • 1
  • 6
  • 17
2
votes
1 answer

Git Shell ignores the custom prompt in my powershell profile

My PowerShell profile customizes the prompt and background color. $Host.UI.RawUI.BackgroundColor = 'Red'; function prompt { Write-Host ("PS >") -nonewline -foregroundcolor Magenta return " " } When I open PowerShell, both customizations…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
2
votes
1 answer

PowerShell hangs when git log command is issued

I have installed poshgit and I use PowerShell to run git commands. It works great, except when I issue git log command, I see the following weird behavior : The command returns with part of the log, I have to keep pressing enter for it to show me…
2
votes
1 answer

Setting WindowTitle of PowerShell posh-git - escape hyphen?

I'm trying to set the WindowTitle of Powershell (hosted by Console) to match the output of my posh-git prompt. So if I had one modified file, my prompt would look something like; [Repo master +0 ~1 -0] I'd like to set the $Host.UI.RawUI.WindowTitle…
Terry
  • 2,148
  • 2
  • 32
  • 53
1
vote
1 answer

`Import-Module posh-git` no longer works in Visual Studio Code terminal

I've been using this very handy CLI in the Visual Studio Code terminal for years, but since about a week ago I haven't been able to see any of the output. I can see it in Windows Powershell. C:\Users\me\projects\project1 [Branch-Name +3 ~3 -1…
1
vote
0 answers

PowerShell Posh-Git autocomplete stop when multiple options exist

Is there a way to configure Posh-Git PowerShell module autocomplete feature in a non-greedy way? Current behavior for input "git checkout fea" will autocomplete to "git checkout feature/my-feature-1". I would like for it to autocomplete to "git…
Antonio Simunovic
  • 229
  • 1
  • 2
  • 10
1
vote
1 answer

Git shell errors out

I have both Git Bash and Git Shell. When I run Git Bash I don't have any issues. However running Git Shell, I received following: Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. Identity added:…
Igor
  • 5,620
  • 11
  • 51
  • 103
1
vote
0 answers

What does DefaultPromptEnableTiming show in posh-git prompt?

There is a boolean variable called DefaultPromptEnableTiming in posh-git. When set to true, there is a number at the end of the promt. Any suggestion gratefully received. Thanks in advance.
Curious Learner
  • 1,182
  • 1
  • 4
  • 17
1
vote
0 answers

How to set posh-git customization variables globally?

I have tried these two: $global:GitPromptSettings.DefaultPromptAbbreviateGitDirectory = $true $GitPromptSettings.DefaultPromptAbbreviateGitDirectory = $true But neither of these changes the value globally. When I open a new instance of PowerShell,…
Curious Learner
  • 1,182
  • 1
  • 4
  • 17
1
vote
1 answer

how to make repo status appear in posh git (oh-my-posh)

so basically i want the repository status to be shown and not hidden like this example : and my terminal without theme shows the repo status but when i apply a theme the numbers (repo status ) disapear like yo see in this pic : so any fix to that…
gouder hicham
  • 123
  • 10