My bash tools for a more convenient life.
To can help you create a list of your favorite directories you frequently visit, and provides fast access to them.
The following command helps you create a link to a directory with a specified link name.
to -c name path_of_directory
If you want to create a link with the name same as the directory's name, use the following command:
to -c path_of_directory
If you want to create a link to current directory with the name same as the directory's name, simple do this:
to .
Simple type to and press [Tab], a list of the recorded directories will be shown:
to [Tab]
dir1 dir2 dir2
You can even access other files using relative path, and tab completion will also work correctly in this case.
to dir1/../another_dir/
file_1_in_another_dir file2_in_another_dir
List all links:
to -l
Delete a link:
to -d name_of_the_link
You can also use these links when executing other commands by the command tt, an argument starts with + will be expanded according to the link.
tt python +my_link/hi.py