Giter VIP home page Giter VIP logo

mal's Introduction

mal

mal - a small zsh function to easily manage aliases.

Preview

demo No more:

$ vim ~/.zshrc
$ source ~/.zshrc

To edit your aliases.

Create, rename, change or delete aliases with a 🔥single command🔥

Create alias:

mal <alias_name> <command>

Change alias command via. fzf:

mal -c

Rename alias via. fzf:

mal -r

Delete alias via. fzf:

mal -d

List all aliases:

mal -l

Execute alias interactively via. fzf:

mal -e

Rename alias:

mal -rn <old_alias_name> <new_alias_name>

Change alias:

mal -cc <alias_name> <new_command>

Delete alias:

mal -dn <alias_name>

Installation

Dependencies

  • zsh
  • fzf

mal depends on zsh (it's a zsh function), but you could probably easily port it to bash or other shells.
It also depends on fzf, which is a fuzzy finder over lists, which enables the easy management of the aliases.

zsh config

To install copy the mal function into your zsh config (I have mine in a folder containing all other zsh functions).
Make sure to source the function in your config.
Then create a file called .aliases.
Make save an envoirement variable $ALIASES_FILE, which is a path to the .aliases file.
Restart the terminal and try it out!

If you need inspiration to how I have set it up, checkout my dotfiles: https://github.com/MLFlexer/.dotfiles

mal's People

Contributors

mlflexer avatar

Stargazers

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

Watchers

 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.