-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
Branch name tab expansion does not work with aliases #164
Comments
Hmmm, I think you just reminded me to update the one we ship with GHfW. 😛 Let me double check and get back to this. |
As I was reading the original issue here I thought "I wish GHfW would ship more frequent POSH-Git updates" and ooh, there it is. ? |
@haacked since you mentioned this last month, are you still not seeing alias expansion? |
I'm still not seeing it @dahlbyk. I just updated to the latest version too. |
Fascinating, still works for me. Are you seeing any |
@haacked how about now? 😞 |
Aliases work for me as well. |
Pretty sure @haacked is just trolling me. If someone else is able to reproduce, I'd love to know more about the environment. |
@dahlbyk sorry, we just updated Posh-Git in Desktop to master a week ago and I still get the problem. Is there a command I could run that would tell you which version of Posh-Git is loaded in case I happen to have a rogue installation? |
Try |
0.6.1.20160330 |
That is the old version. New version should be |
Ah, I might not have shipped the update to Posh-Git in Desktop yet. |
@haacked If you're going to ship a Desktop update of posh-git, hang tight for a few days so we can get 0.7 finalized. I'd love a GIF or something of the config/behavior you're expecting to tab-complete that isn't. Can anyone else on the Desktop team repro what you're seeing? |
@dahlbyk so here's what I did. I cleared out my
Then I ran the following set of commands... So in the last part, I typed |
@rkeithhill I wonder if it's something with the way we load Posh-Git in GitHub Desktop. If you try it with GitHub Desktop, can you repro it? |
I will try that later tonight. Does it matter if I have git.exe already installed (from git-scm.com)? |
I don't think so. If you launch the shell from our shortcut (or from the app by hitting the |
I downloaded Windows for GitHub for a Windows 8 VM I have. It didn't come with posh-git 0.7.0 so I updated to 0.7.0. With that I can repro what you are seeing. Now let me see if I can figure out what is going on. Also, we reorg'd the posh-git dir structure a bit so we'll need to work with ya on how to configure your BTW do you think that GitHub for Windows should always load the version of posh-git that comes with it or do you want the GH configured PowerShell console to automatically load a newer version of posh-git if it is found on the user's system? |
OK seems to be failing a regex match because we are getting back two co aliases. If I try an alias that isn't duplicated, then it works:
I have one defined in my global config but I'm not sure where the other is coming from. It is not defined in the .git/config I'm working in. |
@rkeithhill thanks for figuring this out! In the short run, I'll just remove my local one. 😄 |
@haacked BTW how does GH4W start PowerShell? Is it using a PS console file or just starting the PowerShell.exe process? |
We start the the PowerShell.exe process. We look in the following places for
If you have If you don't have That way we load your $PROFILE if it exists and the example profile for PoshGit. |
Thanks for the explanation! Was a bit worried that the change in dir structure might mess up GH4W but since you're using profile.example.ps1 there shouldn't be any issues. |
Except that I keep getting a warning now that
😛 I guess our workaround could be that we could keep loading a private copy of |
You should be using 0.7, which doesn't have that warning. 😜 But seriously, as of #444 you can hide the warning by calling Import-Module $env:github_posh_git\posh-git.psd1
Start-SshAgent -Quiet For the record, * not actually everything. |
And just now I am noticing the previous entries in the thread. Context helps.
My recommendation would be for you to start using a GitHub-specific "default profile" that could probably be a bit simpler/smarter than our |
I have the following alias in my
.gitconfig
(To test, I cleared out everything else so my gitconfig only contained the following).A long time ago, Posh-Git tab expansion for branch names would work with this. But now it doesn't.
Expected: Given a repo with branches,
git co x{tab}
would expand a branch name that starts with "x"Actual: Nothing happens.
The text was updated successfully, but these errors were encountered: