Skip to content

lchenat/bash_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash_tools

My bash tools for a more convenient life.

To

To can help you create a list of your favorite directories you frequently visit, and provides fast access to them.

Create a new link to you favorite directory

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 .

Access a directory

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

Other commands

List all links:

to -l

Delete a link:

to -d name_of_the_link

Path substitutions

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages