Skip to main content

A light-weight shell wrapper that allows you to create per-directoy command aliases.

Project description

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

https://travis-ci.org/bbugyi200/localalias.svg?branch=master https://codecov.io/gh/bbugyi200/localalias/branch/master/graph/badge.svg https://readthedocs.org/projects/localalias/badge/?version=latest&style=flat

Demonstration

https://github.com/bbugyi200/localalias/blob/master/docs/img/demo.gif?raw=true

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localalias-2.6.1.tar.gz (213.1 kB view details)

Uploaded Source

File details

Details for the file localalias-2.6.1.tar.gz.

File metadata

  • Download URL: localalias-2.6.1.tar.gz
  • Upload date:
  • Size: 213.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.3

File hashes

Hashes for localalias-2.6.1.tar.gz
Algorithm Hash digest
SHA256 1dc1bc582be326db2002b90144c6708ec8a20ae60bfa6754322108954c0a98ed
MD5 7cc0c00a48dce5fbddad2fd338e175b7
BLAKE2b-256 ed3b874b2906f33311535f939691cbde12dbf17c128034407581ff234672801c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page