Giter Club home page Giter Club logo

localalias's Introduction

localalias

Don't kill your fingers by typing out long commands! Local aliases can help you achieve a whole new level of lazy!

image

image

image

Demonstration

image

NOTE: This demonstration uses the helper function, la, in place of the standard localalias command.

Description

localalias is a light-weight shell wrapper that allows you to create per-directoy command aliases.

With bash/zsh, once an alias is set, it cannot be reused. If you want to define a new command using an alias, you have to choose a new alias name. This forces you to define many aliases, some of them with very obscure names that you will never remember. localalias solves this problem by providing an additional level of abstraction to your shell's default alias design scheme.

Local aliases allow you to abstract away from whatever project you are working on, by giving you the ability to setup generic aliases for what are, in actuality, very specific tasks. In my own setup, for example, I alias r to the command that launches the project I am working on. When in the top-level directory of the localalias project directory, running r is equivalent to python localalias. If I change directories, however, to work on a different project, running r will run a different command---one corresponding to the new project. I use multiple patterns like this to simplify my own workflow: t runs the tests, b builds the project, v opens up files in vim.1

Documentation

For more information, please refer to this project's official documentation.

There you will also find instructions for installation and tips for general usage.


  1. I normally use multiple variations of this last one: v opens up the most active files (the ones I am most likely to want to edit), vt opens up test files, vd opens up doc files, etc..โ†ฉ

localalias's People

Contributors

bbugyi200 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.