Giter Site home page Giter Site logo

codyduong / powershell-git-aliases-plus Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 0.0 81 KB

:octocat: Oh My Zsh's Git aliases for PowerShell.

Home Page: https://www.powershellgallery.com/packages/git-aliases-plus/

License: MIT License

PowerShell 67.02% Python 32.98%
alias git posh powershell oh-my-posh oh-my-zsh aliases

powershell-git-aliases-plus's Introduction

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.

powershell-git-aliases-plus's People

Contributors

brar avatar codyduong avatar djwassink avatar gluons avatar graphmaxer avatar jeiea avatar johanneseh avatar mateusstanki avatar moetayuko avatar ratijas avatar sergiohgz avatar sitiom avatar

Stargazers

 avatar  avatar  avatar  avatar

powershell-git-aliases-plus's Issues

Pass literal `""` $args correctly

Powershell when repassing the arguments through will fail.

For example:

gcb -b "123" # -> goes into `git checkout -b '123'` instead of `git checkout -b "123"`
# git checkout -b "123" 

should work, but instead the arguments are parsed/passed incorrectly.

add `gpf` git version >= 2.30

git push --force-with-lease --force-if-includes (git version >= 2.30)
git push --force-with-lease (git version < 2.30)

Add lots of new aliases

Add these aliases from commit ohmyzsh/ohmyzsh@39525e5 to master (as of creation date)

  • gpsupf
  • gpristine (requires two force flags)
  • gpod
  • gms
  • gunwip
  • gunwipall
  • gbsn
  • gbso
  • gsts (fix)
  • gbm
  • gta (there is a gt alias but it is later removed)
  • grhk
  • grhs
  • gbda (fix)
  • gsts (fix)
  • gcB
  • gcann!
  • greva
  • grevc
  • grf

probably just compare and contrast from master branch tbh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.