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.
brew install crystal
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.
am
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.
am <alias-name> -d
am <alias-name> -c
With any add
or delete
the current .alias
before changes will be copied to .alias.bak
in your HOME directory.