Code Monkey home page Code Monkey logo

fish-fastgit's Introduction

fish-fastgit

Fish plugin to auto-generate short aliases for every available Git command.

Installation

Using fundle

Add

fundle plugin 'szemate/fish-fastgit'

and either

fish_git_global_commands

or

fish_git_fugitive_commands

to your config.fish, and run fundle install.

Manually

Copy all files from functions to ~/.config/fish/functions directory and add either of the above commands to your config.fish.

Usage

fish_git_global_commands

Create aliases for every Git command so that they are available without typing git (with the exception of commands that clash with already existing ones like mv or diff.)

> fish_git_global_commands
> checkout some-branch
> commit

fish_git_fugitive_commands

Prefix every Git command with 'G' in the style of vim-fugitive.

> fish_git_fugitive_commands
> Gcheckout some-branch
> Gcommit

fish_update_git_aliases

Regenerate commands, e.g. after creating new Git aliases with git config.

> git config alias.amend 'commit --amend'
> fish_update_git_aliases
> amend

With hub:

> alias git hub
> fish_update_git_aliases
> pull-request

fish_remove_git_aliases

Erase all the Git aliases.

fish-fastgit's People

Watchers

James Cloos avatar Máté Szendrő avatar

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.