Installation Guide#
Prerequisites#
Dirvana works with:
- Bash (4.0+)
- Zsh (5.0+)
- Linux, macOS, or WSL
Method 1: Using Aqua (Recommended)#
If you use aqua, add this to your aqua.yaml:
registries:
- type: standard
ref: v4.223.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: NikitaCOEUR/dirvana@vX.Y.Z # replace X.Y.Z with the desired versionThen run:
aqua install --link-onlyMethod 2: Using go install#
If you have Go installed (1.21+):
go install github.com/NikitaCOEUR/dirvana/cmd/dirvana@latestMethod 3: Download Binary#
Linux#
curl -L https://github.com/NikitaCOEUR/dirvana/releases/latest/download/dirvana-linux-amd64 -o /usr/local/bin/dirvana
chmod +x /usr/local/bin/dirvanaFor ARM64:
curl -L https://github.com/NikitaCOEUR/dirvana/releases/latest/download/dirvana-linux-arm64 -o /usr/local/bin/dirvana
chmod +x /usr/local/bin/dirvanamacOS#
Intel:
curl -L https://github.com/NikitaCOEUR/dirvana/releases/latest/download/dirvana-darwin-amd64 -o /usr/local/bin/dirvana
chmod +x /usr/local/bin/dirvanaApple Silicon (M1/M2):
curl -L https://github.com/NikitaCOEUR/dirvana/releases/latest/download/dirvana-darwin-arm64 -o /usr/local/bin/dirvana
chmod +x /usr/local/bin/dirvanaSetup Shell Hook#
This step is required for automatic environment loading!
Run the setup command:
dirvana setupThis will:
- Detect your shell (Bash or Zsh)
- Add a hook to your
~/.bashrcor~/.zshrc - Enable automatic configuration loading on directory changes
- Install shell completion
Reload your shell:
source ~/.bashrc # For Bash
source ~/.zshrc # For ZshOr simply restart your terminal.
Verify Installation#
Check that Dirvana is installed correctly:
dirvana versionYou should see the version information.
Shell Completion#
The dirvana setup command automatically installs shell completion. If you need to install it manually:
Bash:
# One-time use (current shell only)
source <(dirvana completion bash)
# Permanent
dirvana completion bash > ~/.bash_completion.d/dirvanaZsh:
# One-time use (current shell only)
source <(dirvana completion zsh)
# Permanent
dirvana completion zsh > "${fpath[1]}/_dirvana"
# Then reload: compinit