Skip to content

codyduong/powershell-git-aliases-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Git aliases for PowerShell

license PowerShell Gallery PowerShell Gallery

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

⚙️ 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-plus .

Add below command into your PowerShell profile.

Import-Module git-aliases-plus -DisableNameChecking

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

🔧 Integrations

posh-git

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

thefuck

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.