Important
This is a fork of gluons/powershell-git-aliases
, which lacked regular maintenance.
It also tries to be closer to functionality/behavior as the oh-my-zsh git plugin.
But it has received some updates1 which were merged into this fork.
A PowerShell module that provide partial Git aliases from Oh My Zsh's git plugin.
ℹ️ This module will replace some built-in PowerShell aliases with our Git aliases to prevent conflict.
1: Merged 007452c^..466070f
in 4adf9d8
Install from PowerShell Gallery
Install-Module git-aliases-plus -Scope CurrentUser -AllowClobber
RemoteSigned
or Unrestricted
.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
You have to import the module to use git-aliases-plus
.
Add below command into your PowerShell profile.
Import-Module git-aliases-plus -DisableNameChecking
Then restart your PowerShell.
Now you can use Git aliases.
Supports autocompletion within posh-git
If you want to enable tab completion enable posh-git's autocompletion for aliases. Be aware that if you do want tab completion this way, posh-git MUST be imported after git-aliases-plus
Import-Module git-aliases-plus -DisableNameChecking
Import-Module Posh-Git -arg 0,0,1
This repository provides a custom thefuck rule which can be used to allow fuck
to work with some aliased commands.
Copy git-aliases.py from integrations/thefuck/rules
into $HOME/.config/thefuck/rules
.