Skip to content

Bash script to create folders shortcuts on your terminal

License

Notifications You must be signed in to change notification settings

erickzanardo/shortcutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Shotcutter

Shortcutter is a simple bash script used to create shortcuts on you terminal. It is very simple to use see the examples below.

Use add-shortcut [shortcut-name] to create a shortcut of the current folder. For example:

erick@byteforge [~/projects/shortcutter] $  add-shortcut shortcutter
erick@byteforge [~/projects/shortcutter] $  cd
erick@byteforge [~] $  shortcutter 
erick@byteforge [~/projects/shortcutter] $  

To remove a shortcut user the function remove-shortcut [shortcut-name]

erick@byteforge [~/projects/shortcutter] $  remove-shortcut shortcutter

Instalation

To install Shortcutter on your bash, clone this repository on your computer and paste the following code on your .bashrc (or .bashr_profile if you are on osx)

# Shortcutter
source PATH_WHERE_YOU_CLONED_THIS_REPO/shortcutter/shortcutter

SHORTCUTTER_DIR="$HOME/.shortcutters/"
SHORTCUTTER_DIRS=($(ls $SHORTCUTTER_DIR))

for dir in "${SHORTCUTTER_DIRS[@]}"; do
  source "$SHORTCUTTER_DIR$dir";
done

Also you need to create a folder named .shortcutters on your home.

About

Bash script to create folders shortcuts on your terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages