A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aubreypwd/zsh-plugin-git-is-clean below:

aubreypwd/zsh-plugin-git-is-clean: A way to tell if a git repo is clean, then do something about it.

This function will return true or false depending on if it finds out your repo is dirty or not.

git-is-clean "path/to/repo" || echo "path/to/repo is dirty!"

In this example, if path/to/repo is dirty it will echo path/to/repo is dirty!

If you use https://github.com/aubreypwd/zsh-plugin-require we will try and install dependancies automatically.

Using antigen:

antigen bundle aubreypwd/zsh-plugin-git-is-clean@1.0.0

Install the package on main:

antigen bundle ssh://git@github.com/aubreypwd/zsh-plugin-git-is-clean

...and contribute upstream by working in $HOME/.antigen/bundles/aubreypwd/zsh-plugin-git-is-clean.

###
 # Watch repositories.
 ##
function __git-is-clean {
    git-is-clean "$1" || ( echo "🚨  $1 is dirty" && tput bel )
}
__git-is-clean "$HOME/Repos/github.com/aubreypwd/iTerm2"
__git-is-clean "$HOME/Repos/github.com/aubreypwd/Alfred.alfredpreferences"
__git-is-clean "$HOME/Repos/github.com/aubreypwd/subl-snippets"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4