This script will help you to add an Alias for every directory in your Shell. Currently it just supports Linux ( Debian Based Distributions ).
With Teleport you can set a name for each directory you want and easily access that through shell, you can set name for nested folders and access them by entering a simple word
- In order not to break your current profile, the script creates a new file named:
.bash_aliasesin you home directory, you need to add below lines at the end of you.bashrcfile in/home/username/.bashrc( username should be edited to yours )
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
-
Place built package (
teleport) in/usr/local/binor in/usr/bin/you also can make a shortcut withln -sto make it easier :ln -s <path to teleport built file> /usr/local/bin/svwhich
svwill be a short name for teleport -
Head to each directory you intend to and run
sv aliaswhichsvis the name of teleport built app you previously made a shortcut of and alias is the name you want to assign to that direction. -
From now on you can jump to the directory easily by write your alias name.
With arguments you can use differentfeatures of teleport. currently Teleport supports below arguments:
-
cat - prints current aliases. like:
teleport cat -
(empty) - if you leave the argument empty, it prints your current location. like
teleport -
(location name) - when you head to a location that you want to save, you simply use teleport and location alias as argument. like:
teleport mycode