Is a simple script for create alias automatically from a folder path
This script current support next files to create the alias
.zshrc .bashrc .bash_alias .bash_profile .profile
, automatically selects the first file it finds in $HOME
git clone https://github.com/vickvasquez/alias-creator.git
cd alias-creator
chmod +x ./alias-creator
./alias-creator.sh ~/Documents
After finish, automatically create a file with name ./my-aliases/Documents
in $HOME
path
Structure folder
- folder-test
- foo/
- bar/
- baz/
./alias-creator.sh ~/folder-test
source ~/.zshrc
Now have available the next alias foo, bar, baz
> bar
Automatically change directory to ~folder-test/bar/