Installation
The installation process is:
-
Installing the
cdirbinary and a shell script; -
Creating the configuration files (during the first installation);
-
Setup up your shell rc file to source the shell script.
With Homebrew (macOS only)
This is the recommanded way to install cdir on macOS as it is more automated and it also provides automatic updates.
-
Setup the AmadeusITGroup tap:
-
Install cdir:
-
If it is the first time you use
cdir, you have to callcdironce to initialize the configuration:$ cdir → Initializing the configuration... → Creating the default configuration file "/Users/<user>/.config/cdir/config.yaml" → Creating data directory "/Users/<user>/Library/Application Support/cdir" → Creating the cdir shell file "/Users/<user>/.cdirsh" → Adding source line to "~/.zshrc" ✓ Configuration is ready. Please restart your shell or run 'source ~/.cdirsh' to apply the changes. Use the 'c' shell alias to launch the GUI. Use --help to see available commands. Documentation is available at https://github.com/AmadeusITGroup/cdir
At this point the setup is done.
Either restart your shell or run source ~/.cdirsh to apply the changes.
Then, you can use the c shell alias (see Commands) to launch the GUI, and the p alias to create shortcuts.
From the tarball (Linux or macOS)
-
Download the latest release from the releases page.
-
Extract the archive:
-
Go to the extracted directory and run the installer:
-
If needed, add the installation directory to your
PATH. -
If it is the first time you use
cdir, you have to callcdironce as described in the section for macOS here above.
At this point the setup is done.
Either restart your shell or run source ~/.cdirsh to apply the changes.
Then, you can use the c shell alias (see Commands) to launch the GUI, and the p alias to create shortcuts.