Skip to content

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

License

Notifications You must be signed in to change notification settings

szemate/fish-fastgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages