Directory based aliases
Switch branches/tags
Nothing to show
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Update and add LICENSE Nov 9, 2018
dir_alias.plugin.zsh dir_alias.zsh -> dir_alias.plugin.zsh Nov 9, 2018 Update and add LICENSE Nov 9, 2018


Directory based aliases


Define an .aliasfile with the bash aliases for the directory.

alias foo='echo "foo"'
alias bar="echo 'bar'"

IMPORTANT: the file should only contain alias definitions, onle per line.


Using antigen, antibody, or some other zsh plugin manager:

$ antigen bundle moondewio/dir_alias
$ antibody bundle moondewio/dir_alias >> ~/

Or by clonning the repo and sourcing the file:

git clone
echo "source ~/path/to/dir_alias/dir_alias.plugin.zsh" > ~/.zshrc


Inspired on carlosV2/bash-aliases-per-directory.