Skip to content
forked from djui/alias-tips

An oh-my-zsh plugin to help remembering those aliases you defined once

Notifications You must be signed in to change notification settings

harj0/alias-tips

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

alias-tips

An oh-my-zsh plugin to help remembering thoses aliases you defined onces.

It works by trying to find an alias for the command you are currently trying to execute and printing a help line reminding you about that alias.

The idea is that you mind be too afraid to execute aliases defined because you can't remember them correctly, or just have forgotten about some aliases, or that aliases for your daily commands actually exist.

Example

$ ls -lh
You know you have an alias for that, right? ll
:

$ git gui
You know you have an alias for that, right? gg
:

$ git rebase --interactive master
You know you have an alias for that, right? gri master
:

Installation

  1. Get it

    Go to your custom plugins folder:

    $ cd ${ZSH_CUSTOM1:-$ZSH/custom}/plugins

    Then either clone:

    $ git clone https://github.com/djui/alias-tips.git

    Or download:

    $ wget https://github.com/djui/alias-tips/archive/master.zip
    $ unzip master.zip && mv alias-tips-master alias-tips && rm master.zip

    Or add it as submodule:

    $ git submodule add https://github.com/djui/alias-tips
    $ git submodule update --init
  2. Include it

    Then add the plugin to your plugin list in oh-my-zsh configuration:

    $ $EDITOR ~/.zshrc
    
    # -plugins=(...)
    # +plugins=(... alias-tips)

Usage

After installation re-source your .zshrc.

The help string can be configured exporting an environment variable, e.g. in your .zshrc:

:
export ZSH_PLUGINS_ALIAS_TIPS_TEXT="Alias tip: "
:

About

An oh-my-zsh plugin to help remembering those aliases you defined once

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.7%
  • Shell 6.3%