Skip to content

About

Git autocomplete and info command line for linux and iOS.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

GitHub release (latest by date)

MyGit - Autocomplete and Info

MyGit - Autocomplete and Info Banner

This work was for fun, when i was tired to do all the times git branch and git status, just to know what was untracked, modified, etc, or even to know if i had some work stashed (real problems can happen if you forget your stashed work 😬 ...).

Features

  • Show the name of the working branch
  • Identifies:
    • untracked %
    • unstaged *
    • staged +
    • stashed $
    • Difference between HEAD and its upstream
      • < indicates you are behind
      • >indicates you are ahead
      • <> indicates you have diverged
      • = indicates that there is no difference
  • Some colour in the prompt of macOS terminal
  • ls command shows colours for different types of files and folders
  • type gitmenuto bring up the menu

Notes (more like added info!)

  • Only loads the git identifiers when you open the terminal in a Git repository (no need to overcharge bash when not!), but colour in the prompt of macOS terminal loads everytime
  • Tested in Linux Ubuntu and macOS Mojave

Installation

  • macOS install:

    • Go to your HOME folder (~/), and then:
      • copy there the git_plugins folder
      • copy and paste the code in the macOS_bash.bash_profile to your .bash_profile file (if you do not have it, create one), or other bash profile you use
      • Mark my code for future updates, for example:
      #### START - MyGit-Autocomplete
      <my code>
      #### END - MyGit-Autocomplete
  • Linux install:

    • Go to your HOME folder (~/), and then:
      • copy there the git_plugins folder
      • copy and paste the code in the linux_bash.bashrc to your .bashrc file (if you do not have it, create one), or other bash profile you use
      • Mark my code for future updates, for example:
      #### START - MyGit-Autocomplete
      <my code>
      #### END - MyGit-Autocomplete

Thanks and Credits

The fun of this work was made possible by:

Links of information files used:

About

Git autocomplete and info command line for linux and iOS.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages