Skip to content

Latest commit

 

History

History
54 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

54 lines (27 loc) · 1.14 KB

Alias Manager

Simple command line utility for maintaining an alias file (~/.alias) that can be sourced for directory aliases for jumping around file system easily.

The install.sh should complete all the necessary steps to install it on Mac/Linux.

However, doing it yourself might be preferable.

Install Crystal

brew install crystal

Build

crystal build alsmgr.cr --release

Then move the executable (e.g. alsmgr on OSX) to your "bin" directory or some directory on your PATH.

I prefer to rename it am for more succinct usage.

List directory aliases

am

Add a directory alias (applies to current directory)

am <alias-name>

e.g. alsmgr bob when present working directory is /Users/bob/work will result in alias bob='/Users/bob/work' being added to .alias file in $HOME directory that can be sourced with ZSH for directory aliases.

Delete an alias

am <alias-name> -d

Copy an alias path (currently just prints out to console)

am <alias-name> -c

Backup

With any add or delete the current .alias before changes will be copied to .alias.bak in your HOME directory.