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_aliases
in you home directory, you need to add below lines at the end of you.bashrc
file 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/bin
or in/usr/bin/
you also can make a shortcut withln -s
to make it easier :ln -s <path to teleport built file> /usr/local/bin/sv
which
sv
will be a short name for teleport -
Head to each directory you intend to and run
sv alias
whichsv
is 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