Giter VIP home page Giter VIP logo

predirect's Introduction

This program spawns a child process and passes all command line arguments to it. It's basically intended as a simple way to create aliases for a command.

To use, rename predirect.exe to the name you want to invoke, and create a configuration file which matches the alias name with ".predirect.config" appended to it. For example, if you use "ruby.exe" as your alias, its configuration file should be "ruby.exe.predirect.config".

The contents of the configuration file should be the PATH to the actual executable you want to run.

If the alias is located in the SAME folder as the target executable, you can omit the path in the configuration file, providing only the executable name instead.

Example

Aptana Studio 3 on Windows hardcodes "ruby.exe" as the name of the Ruby executable. To use JRuby with Aptana Studio 3, we need to alias "ruby.exe" to JRuby.

To do this:

  • copy predirect.exe to any location on your PATH
  • rename predirect.exe as ruby.exe
  • create a configuration file named ruby.exe.predirect.config file in the same folder as the ruby.exe we created
  • put the absolute PATH to jruby.exe as the sole contents of the ruby.exe.predirect.config file

This could also be used to seamlessly switch between different versions of apps located in different directories. For example, set up python.exe in a utility folder at the beginning of your PATH and by editing the python.exe.predirect.config file you can switch between multiple versions of python at will without having to modify your PATH.

predirect's People

Contributors

lmcalpin avatar

Stargazers

 avatar

Watchers

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