Skip to content

codyduong/powershell-git-aliases-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git aliases for PowerShell

license PowerShell Gallery PowerShell Gallery

A fork of powershell-git-aliases that adds all missing aliases, see: gluons/powershell-git-aliases#32, gluons/powershell-git-aliases#38, ...and more.

It also adds an support for a thefuck rule to allow fuck to work on aliased commands

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.

⚙️ Installation

Install from PowerShell Gallery

Install-Module git-aliases-plus -Scope CurrentUser -AllowClobber

⚠️ If you haven't allowed script execution policy, set your script execution policy to RemoteSigned or Unrestricted .

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

🛂 Usage

You have to import the module to use git-aliases .

Add below command into your PowerShell profile.

Import-Module git-aliases-plus -DisableNameChecking

Then restart your PowerShell.
Now you can use Git aliases.

🔧 Integrations

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

If you would like your aliases to still be corrected with the fuck command, copy git-aliases.py from integrations/thefuck/rules into $HOME/.config/thefuck/rules.