Directory Jump (dj) is a command-line utility that allows you to quickly navigate between directories in your terminal. It maintains a list of your frequently used directories, enabling you to jump to them with simple commands.
- Add directories to your jump list
- Remove directories from your jump list
- Jump to directories using index numbers
- Navigate to the next or previous directory in the list
- Save and load directory lists
- Clean the directory list
-
Clone this repository:
git clone https://github.com/ygpark/dj.git cd dj
-
Run the installation script:
./install.sh
-
Restart your terminal or run
source ~/.zshrc
(or~/.bashrc
for Bash users) to apply the changes.
dj
: Display the list of saved directoriesdj [index]
: Jump to the directory at the specified indexdj add
: Add the current directory to the listdj add [dir]
: Add the specified directory to the listdj rm
: Remove the current directory from the listdj rm [index]
: Remove the directory at the specified index from the listdj next
: Jump to the next directory in the listdj prev
: Jump to the previous directory in the listdj save <filename>
: Save the current directory list to a filedj load <filename>
: Load a directory list from a filedj clean
: Clear the entire directory listdj help
: Display usage information
-
Add the current directory to the list:
dj add
-
Jump to the third directory in the list:
dj 3
-
Move to the next directory in the list:
dj next
-
Save your current directory list:
dj save my_dirs.txt
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.