Giter Club home page Giter Club logo

zsh-diff-so-fancy's Introduction

Logo ❮ ZI ❯ Plugin - zsh-diff-so-fancy

zsh-diff-so-fancy

The diff-so-fancy

──────────────────────────────────────────────────────────────────────────────────────────────────────
modified: .github/lighthouse/lighthouserc.json
──────────────────────────────────────────────────────────────────────────────────────────────────────
@ .github/lighthouse/lighthouserc.json:11 @
    "collect": {
-     "skipAudits": 
-       [
-         "robots-txt",
-         "canonical",
-       ]
+     "skipAudits": ["robots-txt", "canonical"]
    }
  }

A Few Details

The so-fancy/diff-so-fancy is cloned from Github as a submodule.

The plugin has bin/git-dsf script which adds subcommand dsf to git, that's everything needed:

  • The convenient way of installing (single Zsh plugin manager invocation)
  • Updating (Zsh plugin managers can easily update)
  • Integrating with git

Install with ❮ ZI ❯

The project so-fancy/diff-so-fancy integration with ZI.

With this ZI plugin, you simply add two lines to .zshrc:

zi ice as"program" pick"bin/git-dsf"
zi light z-shell/zsh-diff-so-fancy

This will install diff-so-fancy on every account where you use Z shell and automatically equip git with subcommand dsf.

No need to use the system package manager and to configure git.

Of course, if you have the following standard line in your .gitconfig, it will still work normally:

[core]
pager = diff-so-fancy | less -FXRi

because this plugin adds diff-so-fancy to $PATH.

Think about Puppet or Chef, i.e. about a declarative approach to system configuration.

In this case .zshrc is like a declarative setup guarding you will have diff-so-fancy on your accounts.

Other plugin managers

# Zplug
zplug "z-shell/zsh-diff-so-fancy", as:command, use:"bin/"

# Zgen
zgen load z-shell/zsh-diff-so-fancy

Without as"program"-like functionality the .plugin.zsh file picks up setup and simulates adding a command to the system, so Zgen and others can work.

zsh-diff-so-fancy's People

Contributors

ss-o avatar imgbotapp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.