I made this tool to save time when working. now instead of using cd a/very/long/path, i can use
cx shortcut and quickly change my current directory to another one based on the path pointed by this shortcut.
It's a zoxide like tool made in bash-scripting
If there is something that i can guarantee, it's that: It works on my computer (Ubuntu) Please try on you environement and let's improve it
- clone this repo
git clone https://github.com/jotterkain/cxdir
or using Github CLI
gh repo clone jotterkain/cxdir - inside the root of the project, execute:
. install.sh
You're good!!
cx create: If you want to create a shortcut with the current directory name and the current path
cx create <alias>: If you want to create a shortcut with the given alias and the current path
cx create <alias> -p <a_path>: If you want to create a shortcut with the given alias and the given path
Important: the name of shortcuts must only use alphanumeric characters
to rename a shortcut
cx rename <old_name> <new_name>
To update the path of a shortcut
cx update
To list all the saved shortcuts
cx list
cx delete <alias>: If you want to delete the given shortcut
cx delete --all: If you want to delete all the shortcut... be careful!
cx --help: General
cx <command> --help: specific command
Uninstall
cx uninstall
You just have to clone this project as show above and make a pull request
Made by me, Jotter Kain...
Twitter bricekams