Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 804 Bytes

README.MD

File metadata and controls

39 lines (32 loc) · 804 Bytes

alias-creator

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

Installation

git clone https://github.com/vickvasquez/alias-creator.git
cd alias-creator
chmod +x ./alias-creator

Usage

./alias-creator.sh ~/Documents

After finish, automatically create a file with name ./my-aliases/Documents in $HOME path

Example

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/