This is a simple directory alias manager that allows you to quickly navigate to frequently used directories using simple aliases.
Building and installing it currently requires .NET 8 SDK.
- Clone the repository:
git clone https://github.com/armanossiloko/cd-alias- In the local repository, make the
install.shscript executable:
chmod +x install.sh- Run the script:
./install.sh- Restart your terminal.
# Show usage information
cda
# Set an alias in Linux:
cda set projects /home/projects
# Or in Windows:
cda set projects "C:\\MyProjects"
# Later on, to navigate to it:
cda projects
# List all aliases
cda list
# Remove an alias
cda remove projectsThe application stores aliases in a JSON file:
- Windows:
%USERPROFILE%\.cda.json - Linux:
~/.cda.json - MacOS:
~/.cda.json
An example of what the file could look like:
{
"projects": "/home/projects",
"downloads": "/home/user/downloads"
}To uninstall cd-alias:
-
Remove the binary(ies) from:
- Windows:
%USERPROFILE%\.local\bin\cd-alias.exe - Linux:
~/.local/bin/cd-alias - MacOS:
~/.local/bin/cd-alias
- Windows:
-
Remove the
cda()function from your terminal configuration file. -
Remove the aliases store (the
.cda.jsonfile) from~/.cda.jsonor%USERPROFILE%\.cda.json.
This project is licensed under the MIT License - see the LICENSE file for details.
I most likely did not cover the majority of use cases or issues that people (if anyone) will run into, so feel free to submit a Pull Request.
If you encounter any issues or have questions, please create a new issue with detailed information about your problem.