Giter Club home page Giter Club logo

ally's Introduction

Ally: CLI tool for managing unix-like aliases on windows.

Installation

  1. Download the latest release from https://github.com/priyamkalra0/Ally/releases
  2. Run ally once or create an empty directory at %APPDATA%/Ally
  3. Move the executable ally.exe to %APPDATA%/Ally
  4. Add %APPDATA%/Ally to PATH and restart your shell.

Usage

ally [<name> [<value>]] [options]

Without arguments, ally prints a list of aliases in the reusable form ally <name> <value> on standard output.
Otherwise, if <value> is given, an alias is defined for <name> and <value>, and if <value> is not given, any existing alias corresponding to <name> is removed.

Options:
-s, --search <query> Display all aliases that contain <query>
-c, --clear Clear all currently set aliases.
--version Show version information
-?, -h, --help Show help and usage information

Examples

ally say echo

Now the command say will be equivalent to echo.
You can test it by running say yes. This should print yes to the console just like echo yes would.

ally alias ally

Now the command alias will be equivalent to ally.
You can test it by running alias -h.

Notes

1. Powershell is not supported by default

Right now this only works with command prompt, there is probably a way to make it work with powershell, but I do not use it often enough to do it myself.

2. Forwarding parameters to aliases

By default, all parameters given when calling aliases are forwaded to <value>.
To disable parameter forwarding for a particular alias, append %! at the end of <value> when defining the alias.

3. Delayed expansion of enviroment variables

Additionally, you may use a preceding ! to escape enviroment variables in aliases.

Ex. ally show-profile "echo !%USERPROFILE!%"

Now, the enviroment variable will be expanded each time the alias is called, not when it is defined.

Working

Under the hood, Ally simply manages .cmd files for each alias you define in it's %APPDATA%/Ally data directory, which can then be directly invoked from command prompt.

ally's People

Contributors

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