Skip to content

Directory-specific aliases - all your alias are belong to us

License

Notifications You must be signed in to change notification settings

tkmcclellan/aliens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliens

All your alias are belong to us.

Aliens is a tool for creating directory-specific aliases that automatically load upon entering a directory. It was created to allow the use of the same alias in different directories with different commands.

Ex. Run web in any web app's directory to start the web server, regardless of the language or ecosystem. In one directory, web aliases node dev and in another it aliases bundle exec rails console.

Usage

Aliases for a directory are stored in a .aliens file. These should be valid zsh aliases.

Aliens also comes with a CLI for CRUD operations on .aliens aliases. Use aliens help for a list of commands.

cli

Installation

With zplug

Add this to your .zshrc.

zplug "tkmcclellan/aliens"

Manually

Run

git clone https://github.com/tkmcclellan/aliens $ZSH_CUSTOM/plugins/aliens

And add aliens to your .zshrc

plugins=(... aliens)

About

Directory-specific aliases - all your alias are belong to us

Topics

Resources

License

Stars

Watchers

Forks

Languages