Skip to content

A CLI tool for creating aliases for long and repeated command(s).

Notifications You must be signed in to change notification settings

grv07/quick-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quick-alias(qa)

quick-alias(qa) is a usefull tool for creating aliases for long and repeated command text(s).
We can use these aliasing dynamically to form many other commands.

All of the alias mapping will be store in toml file on user machine.

User can add/remove these aliasing via command.

Example:
===== q_alias.ini ====
bb=bazel build
db_path=my/db/path/here/
merge_path=merge/path/here/
===== /q_alias.toml ===

Now you can use it as qa {bb} {db_path}/new/{merge_path}

qa {bb} {db_path}/new/{merge_path} => bazel build my/db/path/here/new/my/merge/path/here/

How to install ?

Download the binary from https://github.com/grv07/quick-alias/blob/master/example/qa

You can make it executable with sudo chmod +x qa

How to use ?

'./qa -a "sort_path" "some/full/long/path"' to add quick aliasing. './qa --help' for quick aliasing help.

'./qa bazel build {sort_path}' to run os command with aliases.

**NOTE: Aliases set in your bashrc are not gonna work. May be correct in future :)

About

A CLI tool for creating aliases for long and repeated command(s).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages