{"id":32810246,"url":"https://github.com/nikitacoeur/dirvana","last_synced_at":"2026-02-07T20:02:46.580Z","repository":{"id":317751384,"uuid":"1068092804","full_name":"NikitaCOEUR/dirvana","owner":"NikitaCOEUR","description":"Reach directory nirvana - per-project aliases, functions, and env vars that auto-load when you cd. Zero friction, zero pollution.","archived":false,"fork":false,"pushed_at":"2025-12-10T23:29:49.000Z","size":1793,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-11T05:48:27.137Z","etag":null,"topics":["aliases","aliases-manager","aliases-setup","bash","direnv-alternative","dirvana","per-directory","shell","zsh"],"latest_commit_sha":null,"homepage":"https://nikitacoeur.github.io/dirvana/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NikitaCOEUR.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T21:02:21.000Z","updated_at":"2025-12-10T21:03:06.000Z","dependencies_parsed_at":"2025-10-02T21:17:16.809Z","dependency_job_id":"a488aaa6-4d59-45d0-9200-aea8c512f367","html_url":"https://github.com/NikitaCOEUR/dirvana","commit_stats":null,"previous_names":["nikitacoeur/dirvana"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/NikitaCOEUR/dirvana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaCOEUR%2Fdirvana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaCOEUR%2Fdirvana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaCOEUR%2Fdirvana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaCOEUR%2Fdirvana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikitaCOEUR","download_url":"https://codeload.github.com/NikitaCOEUR/dirvana/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaCOEUR%2Fdirvana/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29206829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliases","aliases-manager","aliases-setup","bash","direnv-alternative","dirvana","per-directory","shell","zsh"],"created_at":"2025-11-06T22:01:17.016Z","updated_at":"2026-02-07T20:02:46.575Z","avatar_url":"https://github.com/NikitaCOEUR.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dirvana - Reach directory nirvana\n[![Read the Docs](https://img.shields.io/badge/read-docs-informational)](https://nikitacoeur.github.io/dirvana/)\n[![GitHub Release](https://img.shields.io/github/v/release/NikitaCOEUR/dirvana?sort=semver\u0026display_name=release\u0026style=flat\u0026color=%2300ADD8)](https://github.com/NikitaCOEUR/dirvana/releases) [![codecov](https://codecov.io/gh/NikitaCOEUR/dirvana/graph/badge.svg?token=IBRJQQQB3V)](https://codecov.io/gh/NikitaCOEUR/dirvana) [![License](https://img.shields.io/github/license/NikitaCOEUR/dirvana)](LICENSE) ![GitHub repo size](https://img.shields.io/github/repo-size/NikitaCOEUR/dirvana)\n\n\n![dirvana-logo](docs/static/DirvanaLogo.png)\n\n\u003e [!WARNING]\n\u003e **Beta Status - We Need Your Feedback!**\n\u003e\n\u003e Dirvana is currently in beta. Found a bug? Have a feature request? Please [open an issue](https://github.com/NikitaCOEUR/dirvana/issues)!\n\n\n## Automatically load shell aliases, functions, and environment variables per directory.\n\nDirvana is a lightweight CLI tool that manages project-specific shell environments.\n\nWhen you enter a directory, Dirvana automatically loads the configuration defined in `.dirvana.yml`, giving you instant access to project-specific commands and settings.\n\nWhen you leave, everything is automatically unloaded.\n\n## The Problem\n\n```bash\n$ cd ~/projects/terraform\n$ export TF_LOG=debug\n$ alias tf=\"task terraform --\"\n$ alias plan=\"task terraform -- plan\"\n# ... and don't forget to unset everything when leaving!\n```\n\n## The Solution\n\n```yaml\n# .dirvana.yml\naliases:\n  tf:\n    command: task terraform --\n    completion: terraform  # Auto-completion works!\n  plan: task terraform -- plan\n\nenv:\n  TF_LOG: debug\n```\n\n```bash\n$ cd ~/projects/terraform\n# Everything loads automatically!\n$ tf \u003cTAB\u003e          # Auto-completion works!\n  apply  console  destroy  init  plan  validate ...\n\n$ cd ..\n# Everything unloads automatically!\n```\n\n---\n\n## Features\n\n- **Fast**: \u003c10ms overhead with intelligent caching\n- **Secure**: Authorization system prevents untrusted configs\n- **Hierarchical**: Merge configurations from parent directories\n- **Simple**: YAML configuration with JSON Schema validation\n- **Compatible**: Works with Bash, Zsh, and Fish\n- **Auto-completion**: Inherits completion from aliased commands\n- **Conditional Aliases**: Execute commands based on runtime conditions\n- **Template Variables**: Go templates with Sprig functions\n\n---\n\n## Quick Start\n\n### 1. Install\n\n```bash\n# Using go install\ngo install github.com/NikitaCOEUR/dirvana/cmd/dirvana@latest\n\n# Or download binary\ncurl -L https://github.com/NikitaCOEUR/dirvana/releases/latest/download/dirvana-linux-amd64 -o /usr/local/bin/dirvana\nchmod +x /usr/local/bin/dirvana\n```\n\n### 2. Setup Shell Hook\n\n```bash\ndirvana setup\nsource ~/.bashrc  # or ~/.zshrc, or ~/.config/fish/config.fish\n```\n\n### 3. Create Configuration\n\n```bash\ncd your-project\ndirvana init\ndirvana allow\n```\n\n**That's it!** Your environment is now automatically managed.\n\n---\n\n## Configuration Example\n\n```yaml\n# Simple aliases\naliases:\n  # With auto-completion\n  tf:\n    command: task terraform -- # Execute a wrapper command that use specific variables\n    completion: terraform      # But keep terraform completion\n\n  # Conditional execution\n  k:\n    when:\n      file: \"$KUBECONFIG\"      # Check if KUBECONFIG file exists\n    command: kubecolor         # If exists, use command kubecolor based on $KUBECONFIG\n    else: task kubecolor --    # else execute a task which generate your kubeconfig file and call kubecolor afterwards\n    completion: kubectl        # Inherit kubectl completion\n\n# Functions\nfunctions:\n  mkcd: |\n    mkdir -p \"$1\" \u0026\u0026 cd \"$1\"\n\n# Environment variables\nenv:\n  KUBECONFIG: \"/tmp/kubeconfig-{{.USER_WORKING_DIR | sha256sum | trunc 8}}\"\n```\n\n---\n\n## Documentation\n\n**Full documentation is available at [https://nikitacoeur.github.io/dirvana/](https://nikitacoeur.github.io/dirvana/)**\n\n- [Installation Guide](https://nikitacoeur.github.io/dirvana/docs/installation/) - Detailed installation instructions\n- [Quick Start](https://nikitacoeur.github.io/dirvana/docs/quick-start/) - Get up and running in 5 minutes\n- [Configuration Reference](https://nikitacoeur.github.io/dirvana/docs/configuration/) - Complete configuration guide\n- [Conditional Aliases](https://nikitacoeur.github.io/dirvana/docs/advanced/conditional-aliases/) - Runtime condition checks\n- [Template Variables](https://nikitacoeur.github.io/dirvana/docs/advanced/templates/) - Go templates with Sprig functions\n- [Development Guide](https://nikitacoeur.github.io/dirvana/docs/development/) - Contributing and development\n\n---\n\n## Contributing\n\nContributions are welcome! Please ensure:\n- All commits follow [Conventional Commits](https://www.conventionalcommits.org/)\n- All tests pass: `task test`\n- Code is formatted: `task fmt`\n- Linter passes: `task lint`\n\n---\n\n## License\n\nMIT License - See [LICENSE](LICENSE) file for details\n\n## Author\n\n[Nikita C](https://github.com/NikitaCOEUR)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitacoeur%2Fdirvana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitacoeur%2Fdirvana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitacoeur%2Fdirvana/lists"}