Skip to content

dubzland/dalias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dalias

Gitlab pipeline status (self-hosted) Liberapay patrons Liberapay receiving

Dynamic bash aliases (loosely based on rbenv).

Installation

The simplest method is a git checkout:

$ git checkout https://github.com/t3hpr1m3/dalias.git ~/.dalias
$ echo 'export PATH="$HOME/.dalias/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval $(dalias init)' >> ~/.bash_profile

You will need to restart your shell for the above to take effect.

Usage

Usage is fairly straightforward. Navigate to a directory where you wish to add an alias. Let's say that in this directory, you want to run rspec within your Docker container (via docker-compose):

$ dalias add rspec docker-compose run app bundle exec rspec

License

dalias is released under the MIT License.

Releases

No releases published

Packages

No packages published

Languages