Git Product home page Git Product logo

tipz's Introduction

Tipz

Tipz is a small ZSH plugin, which gives you helpful hints when you execute a command for which you have an alias defined.

Example

asciicast

Installation

zulu install tipz

Manual

git clone https://github.com/molovo/tipz tipz && cd tipz
echo "source $(pwd)/tipz.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

Configuration

You can customize the prefix text if you'd like, by setting TIPZ_TEXT

TIPZ_TEXT='๐Ÿ’ก '

License

Copyright (c) 2016,2017 James Dinsdale [email protected] (molovo.co)

Tipz is licensed under The MIT License (MIT)

Team

Related

  • alias-tips - A Python implementation of the same concept

tipz's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tipz's Issues

doesn't like g++

_tipz_find_match:23: failed to compile regex: repetition-operator operand invalid

on g++ something.cpp

Change color

Can you add a option to change the color of the text?

It's not very visible on a black background.

image

least useful alias provided

Using the plugin oh-my-zsh/git and tipz from zgen, I notice that the alias suggested by Tipz is not the one I'm expecting. Eg:

$ git commit -am "add README" 
'Tipz:' g commit -am "add README"
[master 73cc76a] add README
 1 file changed, 11 insertions(+)
 create mode 100644 tree/README.md

I would have preferred Tipz to tell me about "gcam".

A simple solution would be to go over all aliases available, then return the shortest one ("g commit -am" is 12 chars, "gcam" is only 4, return the later). Is that something you could easily implement ?

Thank you!

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.