{"id":21499711,"url":"https://github.com/frap129/snv","last_synced_at":"2025-03-17T13:12:43.340Z","repository":{"id":212766844,"uuid":"732256325","full_name":"frap129/snv","owner":"frap129","description":"Switch eNVironment (a menu to change distrobox containers)","archived":false,"fork":false,"pushed_at":"2024-05-22T18:34:15.000Z","size":326,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T22:35:26.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frap129.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-12-16T04:25:12.000Z","updated_at":"2024-05-22T18:34:19.000Z","dependencies_parsed_at":"2024-05-22T19:55:47.459Z","dependency_job_id":null,"html_url":"https://github.com/frap129/snv","commit_stats":null,"previous_names":["frap129/snv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frap129%2Fsnv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frap129%2Fsnv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frap129%2Fsnv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frap129%2Fsnv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frap129","download_url":"https://codeload.github.com/frap129/snv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039242,"owners_count":20387835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-23T17:17:35.153Z","updated_at":"2025-03-17T13:12:43.314Z","avatar_url":"https://github.com/frap129.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snv (Switch eNVironment)\n`snv` is a script that lets you choose a shell environment from a list of your distrobox containers + your host.\n\nIf `snv` is installed somewhere in your home directory and is in your path, it works both on host and in a container.\n\n![](docs/demo.gif)\n\n### Preview\nThe command used to generate the preview is customizable using environment variables.\n| Variable  | Default Value                                                  |\n|-----------|----------------------------------------------------------------|\n| HOST_PREV | `cat /etc/hostname`                                            |\n| ENV_PREV  | `distrobox list \\| head -n 1 \u0026\u0026 distrobox list \\| grep ' {}'\"` |\n\nAs an example, to generate a simple preview for the host with neofetch, export\n\n`HOST_PREV=\"neofetch --backend off --color_blocks off\"`\n\nDependencies:\n- distrobox\n- fzf\n\n### Setup completions\nCompletions for BASH and ZSH are included in `snv`. Simply `source ~/.local/bin/snv` (or whatever path you installed it to) in your `~/.bashrc` or `~/.zshrc` respevtively\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrap129%2Fsnv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrap129%2Fsnv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrap129%2Fsnv/lists"}