Skip to content

Is a simple script for create alias automatically from a folder path

License

Notifications You must be signed in to change notification settings

vickvasquez/alias-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Is a simple script for create alias automatically from a folder path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages