GithubHelp home page GithubHelp logo

renovate-bot / z-shell-_-zsh-tig-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from z-shell/zsh-tig-plugin

0.0 0.0 0.0 13 KB

A plugin for Zsh that automatically adds a few advanced bindings and also provides a Zsh-rewritten function and/or script tig-pick (i.e.: the code is agnostic and can be run either as a script or as a function; it defaults to function), originally shipped with tig as sh-script in the contrib/ subdirectory.

Home Page: https://z.digitalclouds.dev

License: Other

Shell 100.00%

z-shell-_-zsh-tig-plugin's Introduction

Logo ❮ ZI ❯ Plugin - Zsh Tig

Introduction

A plugin for Zsh that automatically adds a few advanced bindings and also provides a Zsh-rewritten function and/or script tig-pick (i.e.: the code is agnostic and can be run either as a script or as a function; it defaults to function), originally shipped with tig as sh-script in the contrib/ subdirectory.

The Added Bindings

—— Make Bindings ——

xmf – eXecute MakeFile

Retrieves the list of targets for Makefile in the current directory and runs fzf or fzy on the list and then, when a target gets selected, executes make on that target.

xamf – eXecute all MakeFile

Runs make all

xcmf – eXecute clean MakeFile

Runs make clean

—— Copy Bindings ——

xcp - eXecute CoPy

Copies the SHA of currently active (highlighted) commit into the clipboard. Supports OS X's pbcopy and Linux/other's xsel and xclip.

xfcp - eXecute File CoPy

Copies the contents of currently active (highlighted) file into the clipboard. Supports OS X's pbcopy and Linux/other's xsel and xclip.

—— Editor Bindings ——

xed - eXecute EDitor

Executes an editor on selected file. It's either $VISUAL, then $EDITOR and then vim.

xled - eXecute List EDitor

Runs fuzzy-finder (either fzf or fzy) on the list of the files in the repository and after selecting one it then executes an editor like in xed.

—— Midnight Commander Bindings ——

xmc – eXecute Midnight Commander

Executes mc with the left pane set to the repository and the right pane to $ZSH_TIG_MC_DIR. If the variable isn't set it uses $HOME instead.

xhmc – eXecute Home Midnight Commander

Executes mc with the left pane set to the repository and the right pane to the home directory.

Installation

Add zi load z-shell/zsh-tig-plugin to your .zshrc file. Zinit will clone the plugin the next time you start zsh. To update issue zi update z-shell/zsh-tig-plugin.

zi load z-shell/zsh-tig-plugin

Or with use of the Turbo mode:

zi wait lucid for z-shell/zsh-tig-plugin

Zinit

zinit load z-shell/zsh-tig-plugin

Antigen

Add antigen bundle z-shell/zsh-tig-plugin to your .zshrc file. Antigen will handle cloning the plugin for you automatically the next time you start zsh.

antigen bundle z-shell/zsh-tig-plugin

Oh-My-Zsh

  1. cd ~/.oh-my-zsh/custom/plugins
  2. git clone [email protected]:z-shell/zsh-tig-plugin.git
  3. Add zsh-tig-plugin to your plugin list

Zgen

Add zgen load z-shell/zsh-tig-plugin to your .zshrc file in the same place you're doing your other zgen load calls in.

z-shell-_-zsh-tig-plugin's People

Contributors

ss-o 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.