Project

ralias

0.0
No commit activity in last 3 years
No release in over 3 years
can be defined like the alias of shell
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0.9.2.2
>= 2.7.0
 Project Readme

Ralias

Build Status

Supported versions

  • Ruby 1.8.7, 1.9.x, ree

Install

$ gem install ralias

How to use

you type

$ ralias

help will be output.

help      -> print help
init      -> create ~/.raliasrc
list      -> print defined aliase command
define    -> define new aliase command (TODO)

Ralias init

create .raliasrc file.

$ ralias init

.raliasrc

An example of how editing

normal alias definition.

define("lsA") { "ls -al" }

please use this way.

$ ralias lsA

if you want to use the arguments to the alias

define("github") do |user_name, repository|
  "git clone https://github.com/#{user_name}/#{repository}.git"
end

in that case, you use it in this manner.

$ ralias github user_name repository

result is

load ~/.raliasrc
Cloning into repository...
...

$ ralias list

print defined aliase command.

if the initial state,

help
init
define
list

if after you define the command.

help
init
define
list
github :user_name :repository