{"id":16194485,"url":"https://github.com/muniftanjim/luver","last_synced_at":"2025-03-19T04:30:46.889Z","repository":{"id":45173118,"uuid":"430738018","full_name":"MunifTanjim/luver","owner":"MunifTanjim","description":"Version manager for Lua, built with :heart:","archived":false,"fork":false,"pushed_at":"2023-02-18T19:21:22.000Z","size":58,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T03:34:26.106Z","etag":null,"topics":["lua","luajit","luarocks","version-manager"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/MunifTanjim.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}},"created_at":"2021-11-22T14:23:30.000Z","updated_at":"2025-02-05T06:05:01.000Z","dependencies_parsed_at":"2024-02-23T11:55:19.671Z","dependency_job_id":null,"html_url":"https://github.com/MunifTanjim/luver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fluver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fluver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fluver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fluver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MunifTanjim","download_url":"https://codeload.github.com/MunifTanjim/luver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244357428,"owners_count":20440326,"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":["lua","luajit","luarocks","version-manager"],"created_at":"2024-10-10T08:19:32.653Z","updated_at":"2025-03-19T04:30:46.657Z","avatar_url":"https://github.com/MunifTanjim.png","language":"Shell","readme":"# luver\n\nVersion manager for Lua, built with :heart:\n\nLuver supports:\n\n- [Lua](https://github.com/lua/lua)\n- [LuaJIT](https://github.com/LuaJIT/LuaJIT)\n- [LuaRocks](https://github.com/luarocks/luarocks)\n- [luvi](https://github.com/luvit/luvi)\n- [luvit](https://github.com/luvit/luvit)\n- [lit](https://github.com/luvit/lit)\n\n## Installation\n\n**Requirements**:\n\n- Bash v4 or newer _(MacOS ships with older version by default)_.\n\n### Git Clone\n\n```sh\nexport LUVER_DIR=\"${HOME}/.local/share/luver\"\nmkdir -p \"${LUVER_DIR}\"\ngit clone https://github.com/MunifTanjim/luver.git \"${LUVER_DIR}/self\"\n```\n\n### Bash\n\n#### Manual Installation\n\nAfter doing [Git Clone](#git-clone), source the entrypoint:\n\n```sh\nsource \"${LUVER_DIR}/self/luver.bash\"\n```\n\nor just put this in your `.bashrc` file:\n\n```sh\nexport LUVER_DIR=\"${LUVER_DIR:-\"${XDG_DATA_HOME:-\"${HOME}/.local/share\"}/luver\"}\"\n\nif [[ ! -d \"${LUVER_DIR}/self\" ]]; then\n  git clone --quiet https://github.com/MunifTanjim/luver.git \"${LUVER_DIR}/self\"\nfi\n\nsource \"${LUVER_DIR}/self/luver.bash\"\n```\n\n#### Shell Completion\n\n`luver` comes with shell completion script for Bash.\n\nMake sure you have `\"bash-completion\"` package installed on your system.\n\nTo generate the shell completion script and store it, run:\n\n```sh\nluver completion bash | tee \"${XDG_DATA_HOME:-\"${HOME}/.local/share\"}/bash-completion/completions/luver\"\n```\n\n### Fish\n\n#### Using Plugin Manger (recommended)\n\n**Using [fisher](https://github.com/jorgebucaran/fisher)**:\n\n```sh\nfisher install MunifTanjim/luver\n```\n\n#### Shell Completion\n\n`luver` comes with shell completion script for Fish.\n\nIf you installed it using _fisher_, you don't need to do anything else.\n\nTo generate the shell completion script and store it, run:\n\n```sh\nluver completion fish | tee $__fish_config_dir/completions/luver.fish\n```\n\n### Zsh\n\n#### Using Plugin Manager (recommended)\n\n**Using [zed](https://github.com/MunifTanjim/zed)**:\n\n```sh\nzed load github.com/MunifTanjim/luver\n```\n\n#### Manual Installation\n\nAfter doing [Git Clone](#git-clone), source the entrypoint:\n\n```sh\nsource \"${LUVER_DIR}/self/luver.plugin.zsh\"\n```\n\nor just put this in your `.zshrc` file:\n\n```sh\nexport LUVER_DIR=\"${LUVER_DIR:-\"${XDG_DATA_HOME:-\"${HOME}/.local/share\"}/luver\"}\"\n\nif [[ ! -d \"${LUVER_DIR}/self\" ]]; then\n  git clone --quiet https://github.com/MunifTanjim/luver.git \"${LUVER_DIR}/self\"\nfi\n\nsource \"${LUVER_DIR}/self/luver.plugin.zsh\"\n```\n\n#### Shell Completion\n\n`luver` comes with shell completion script for Zsh.\n\nTo generate the shell completion script `_luver`, run:\n\n```sh\nluver completion zsh \u003e _luver\n```\n\nThen store the `_luver` file in one of the directories present in `$fpath` variable:\n\n```sh\n# print the list of fpath directories\necho ${(j.\\n.)fpath}\n```\n\n## Command Usage\n\nRun `luver help` to get started.\n\n### Lua\n\n**Install a Lua version**:\n\n```sh\nluver install lua 5.1.5\n```\n\n**Create a Lua version alias**:\n\n```sh\nluver alias 5.4.3 latest\n# default version\nluver alias 5.1.5 default\n```\n\nLua version set to `default` alias is used automatically when you open a new shell.\n\n**Use a specific Lua version (or alias)**:\n\n```sh\n# version\nluver use 5.3.6\n\n# alias\nluver use latest\n```\n\n**Get currently used Lua version**:\n\n```sh\nluver current lua\n```\n\n**List currently installed Lua versions**:\n\n```sh\nluver list lua\n```\n\n**Uninstall a Lua version**:\n\n```sh\nluver uninstall lua 5.3.6\n```\n\n### LuaJIT\n\nIf your currently used Lua is at least `v5`, you can install LuaJIT alongside it:\n\n```sh\n# released version\nluver install luajit 2.0.5\n\n# latest git version\nluver install luajit 2.1.0-git\n```\n\nThe other commands are similar to Lua.\n\n### LuaRocks\n\nYou can install LuaRocks for you currently used Lua version:\n\n```sh\nluver install luarocks 3.8.0\n```\n\nThe other commands are similar to Lua.\n\n## GitHub Action\n\nYou can also use Luver in GitHub Actions workflow!\n\nCheck: [MunifTanjim/luver-action](https://github.com/MunifTanjim/luver-action)\n\n## License\n\nLicensed under the MIT License. Check the [LICENSE](./LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuniftanjim%2Fluver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuniftanjim%2Fluver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuniftanjim%2Fluver/lists"}