Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

All Contributors

BuildPRs Welcomemade-with-bashMIT LicenceGitHub forksGitHub stars

logo

FancyGit is a tool which works for Linux and MAC OS, that changes the terminal prompt in order to show you a few cool git informations when you're working on a git repo. It'll always keep you informed about the current branch status.

🚀 Contributing | 🧐 Changelog | 🔨 Troubleshooting

💘 Installing

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh

💔 Uninstalling

curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninstall.sh | sh

✔️ After installing

  1. Change your terminal font to one of these fonts:
    • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
    • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
    • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.
      It's necessary for rendering icons/symbols properly.
      If you can't find the font, it's still possible to install it manually by running fancygit --fonts-install or even installing the ttf file which is placed at ~/.fancy-git/fonts/.
  2. Restart your terminal.

Run fancygit -h to check FancyGit help.

💅 Git suggested config

git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
git config --global color.status.untracked "cyan"

Run fancygit --suggested-global-git-config to see that suggested config.
Run fancygit --suggested-global-git-config-apply to apply it.

I suggest you to use this config because FancyGit will paint the background branch, most of the time, according to the current repo status, since you're using some theme which allows that.

Type fancygit -h for more information.

👀 Overview

As a picture is worth a thousand words...

001002003004005006007

Working on a Python virtual environment? python_venv

🎨 Themes and color schemes

If you don't want to be too "fancy", you can choose using the simple theme by running fancygit --theme-simple. If you want to return to the default theme, just type fancygit --theme-default. There are a few more themes and color schemes you can choose from.

Type fancygit -h to see all available themes and color schemes on "THEME COMMANDS" and "COLOR SCHEME COMMANDS" sections.

Here you have a list of available themes and their corresponding color schemes.

Screenshot font: JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf

fancygit --theme-default (default color scheme: --color-scheme-default)
Theme default

fancygit --color-scheme-dracula
Color scheme dracula

fancygit --color-scheme-batman
Color scheme batman

fancygit --color-scheme-robin
Color scheme robin

fancygit --color-scheme-superman
Color scheme superman

fancygit --color-scheme-light
Color scheme light

fancygit --color-scheme-neon
Color scheme neon

fancygit --color-scheme-cga
Color scheme cga

fancygit --theme-human (default color scheme: --color-scheme-human)
Theme human

fancygit --theme-simple (default color scheme: --color-scheme-simple)
Theme simple

🔗 Separators styles

You can type fancygit --separator<TAB> so you can see all the available separator styles for you to use.

‼️ Important ‼️

It's highly recommended to set up the terminal font to one of:

  • Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete.ttf.
  • DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf.
  • JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf.

This way, symbols will be rendered correctly and new FancyGit releases must work as expected.
In order to install the fonts you can run fancygit --fonts-install.

Screenshot font: Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf

fancygit --separator-default
Separator default

fancygit --separator-blocks
Separator blocks

fancygit --separator-blocks-tiny
Separator blocks-tiny

fancygit --separator-curve
Separator curve

fancygit --separator-fire
Separator fire

fancygit --separator-lego
Separator lego

fancygit --separator-paint
Separator paint

💫 Feature switchers

Feature switchers are special commands to enable/disable features and they work on every theme.
You can enable or disable them by typing fancygit --enable-<feature-name> or fancygit --disable-<feature-name>.
Type fancygit -h to see all available feature switchers on "FEATURE SWITCHER COMMANDS" section.

🧰 Commands

CommandDescription
fancygit -h, --helpShow this help.
fancygit -v, --versionShow the FancyGit version.
fancygit --updateUpdate FancyGit code with the latest release from GitHub.
fancygit --fonts-installInstall font in order to render icons properly.
fancygit --suggested-global-git-configShow suggested global git config.
fancygit --suggested-global-git-config-applyApply the suggested global git config.
fancygit --config-listShow FancyGit config.
fancygit --resetReset the configuration as if you have just installed FancyGit.
fancygit --changelog-showShow changelog for the last version.
fancygit --show-themesShow all available themes.
fancygit --show-color-schemesShow available color schemes for current theme.
fancygit --show-color-schemes-allShow all available color schemes.
fancygit --enable-full-pathShow the entire path.
fancygit --disable-full-pathShow only the the working directory name.
fancygit --enable-show-user-at-machineShow (user@machine) info, as usual.
fancygit --disable-show-user-at-machineHide (user@machine) info.
fancygit --enable-timeShow current time.
fancygit --disable-timeHide current time.
fancygit --enable-double-lineShow a double line prompt.
fancygit --disable-double-lineShow a single line prompt.
fancygit --enable-rich-notificationShow notification area with icons.
fancygit --disable-rich-notificationShow notification area with simple symbols.
fancygit --set-user-name {name}Set the user name.
fancygit --unset-user-nameRestore the user name to default.
fancygit --set-host-name {name}Set the host name.
fancygit --unset-host-nameRestore the host name to default.
fancygit --separator-defaultChange the separator to default style.
fancygit --separator-blocksChange the separator to blocks style.
fancygit --separator-blocks-tinyChange the separator to blocks-tiny style.
fancygit --separator-fireChange the separator to fire style.
fancygit --separator-legoChange the separator to lego style.
fancygit --separator-curveChange the separator to curve style.
fancygit --separator-paintChange the separator to paint style.
fancygit --theme-<name>Change prompt to the selected theme.
fancygit --color-scheme-<name>Change to the selected color scheme.

🧰 Aliases

AliasDescription
gsShow git status. (git status)
ga <file> ...Add a file in order to commit. (file)
gap <file>Add a file in order to commit. (git add -p <file>)
gaaAdd all files in order to commit. (file)
gdShow changes of a file and suggests to add it. (git diff) (file)
gcmStart committing. (git commit)
gcmm "<message>"Start committing with a message. (git commit -m "<message>")
gplGit pull. (git pull) (file)
gpsGit push. (git push)
gplo <branch-name>Git pull from <branch-name> to current local branch. (git pull origin <branch-name>) (file)
gpso <branch-name>Git push from current local branch to <branch-name>. (git push origin <branch-name>)
gplobGit pull from remote current branch to local current branch. (file)
gpsobGit push from local current branch to remote current branch. (file)
gck <file> ...Rollback file changes. (git checkout -- <file>) (file)
gckb <branch-name>Switch to a branch. (git checkout <branch-name>).
gckbt <branch-name>Switch to a branch with --track option. (file)
gcb <branch-name>Create and switch to the new branch. (git checkout -b <branch-name>)
ggdb <branch-name>Delete a local branch. (git branch -D <branch-name>)
gdbr <branch-name>Delete a remote branch. (git push origin --delete <branch-name>)
grb <new-branch-name>Rename a branch (local). (file)
grba <new-branch-name>Rename a branch (local and remote). (file)
glShow git log. (git log)
glpShow pretty git log. (file)
gdofRemove all .orig files from project. (find . -name "*.orig" | xargs rm -rf)
gfi <file>Force git to ignore a file. (git update-index --assume-unchanged <file>)
gurlShow git repository URL. (file)
guserShow git user information. (file)
gstCreate new stash with default message. (git stash)
gstlList all stashes. (git stash list)
gstmCreate new stash with custom message. (git stash save "<message>")
gstwShow stash diffs. (git stash show <stash_id>) (file)
gstaApply stash. (git stash apply <stash_id>) (file)
gstdDrop specific stash. (git stash drop <stash_id>) (file)
gg "<message>"Add all changes, then commit and push them. (git add --all && git commit -m "<message>" && git push) (file)
gu <file> ...Remove files from staging area. (git reset HEAD <file>)
pveShow the current Python virtual environment name. (file)

⚙️ Advanced tweaking - override some default config values

If you like to tweak things more in-depth, like special characters and such, you can create environment variables. These variables override any value found in FancyGit default configuration.

Example:
You want to change the branch icon, because you are using a different console font and the icon is on a different character position inside the font. Simply create the correspondent environment variable.
For sure, you will likely have changed the symbol:

# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""

Here you can see a list of available environment variables FancyGit will search and replace:

# Only local branch icon.
FANCYGIT_ICON_LOCAL_BRANCH
# Branch icon.
FANCYGIT_ICON_LOCAL_REMOTE_BRANCH
# Merged branch icon.
FANCYGIT_ICON_MERGED_BRANCH
# Staged files.
FANCYGIT_ICON_HAS_STASHES
# Untracked files.
FANCYGIT_ICON_HAS_UNTRACKED_FILES
# Changed files.
FANCYGIT_ICON_HAS_CHANGED_FILES
# Added files.
FANCYGIT_ICON_HAS_ADDED_FILES
# Unpushed commits.
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Holger Pandel

💻

Marvin Kweyu

💻

Foundjem

💻

Rafael Martins

💻

Otávio Augusto

📖

Roger Carhuatocto

📓

Rafael Pereira

📓

Tom Halliley

💵

Sven Finke

🤔

ibury08

💻

Josip Trupina

💻

David Quartino

💻

Borjovsky

💻

☕ Buy me a coffee!

Donate_with_PayPal

About

That's a simple prompt changer to show a few cool git informations about your repository on terminal. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages