All Projects → momo-lab → xxenv-latest

momo-lab / xxenv-latest

Licence: MIT license
This **env(pyenv, rbenv, nodenv, goenv, phpenv, luaenv) plugin replaces the version specified in the argument with the latest version.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to xxenv-latest

nodenv-nvmrc
nodenv plugin that detects the node version based on .nvmrc.
Stars: ✭ 30 (-56.52%)
Mutual labels:  nodenv, nodenv-plugin
ubuntu-win-bootstrap
DEPRECIATED! Use "linux-comfy-chair" instead. A very simple bootstrap script to install some development tools to the Windows 10 Ubuntu Bash system - Ruby, Perl, Python, Node, Sublime Text and more!
Stars: ✭ 27 (-60.87%)
Mutual labels:  rbenv, pyenv
dotfiles
💾 personal configuration files
Stars: ✭ 42 (-39.13%)
Mutual labels:  pyenv
pyenv
Pyenv support plugin for fish-shell
Stars: ✭ 62 (-10.14%)
Mutual labels:  pyenv
flora
Upgrade and version manager for terraform
Stars: ✭ 16 (-76.81%)
Mutual labels:  rbenv
travis-pyenv
Set up pyenv to use in Travis CI
Stars: ✭ 17 (-75.36%)
Mutual labels:  pyenv
ansible-pyenv
Ansible role to install pyenv on Ubuntu or macOS development machines
Stars: ✭ 46 (-33.33%)
Mutual labels:  pyenv
ansible-galaxy-pyenv
Ansible Galaxy role for pyenv
Stars: ✭ 56 (-18.84%)
Mutual labels:  pyenv
pyenv-mode-auto
Automatically activates pyenv version within Emacs if .python-version file exists.
Stars: ✭ 23 (-66.67%)
Mutual labels:  pyenv
pyenv-pyright
Setup a pyenv virtualenv for microsoft pyright in the pyrightconfig.json config file
Stars: ✭ 51 (-26.09%)
Mutual labels:  pyenv
pyenv-win
pyenv for Windows. pyenv is a simple python version management tool. It lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
Stars: ✭ 1,815 (+2530.43%)
Mutual labels:  pyenv
pythonfinder
PythonFinder: Cross Platform Search Tool for Finding Pythons
Stars: ✭ 30 (-56.52%)
Mutual labels:  pyenv
gobrew
Go version manager. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
Stars: ✭ 171 (+147.83%)
Mutual labels:  goenv
Nodenv
Manage multiple NodeJS versions.
Stars: ✭ 1,687 (+2344.93%)
Mutual labels:  nodenv
nodenv-package-json-engine
Activate a nodenv node version from package.json#engines.node field
Stars: ✭ 32 (-53.62%)
Mutual labels:  nodenv-plugin

xxenv-latest

This **env plugin replaces the version specified in the argument with the latest version.

Supported **env

Usage

Replaces '**env' with 'pyenv', 'rbenv', etc.

**env latest <command> [<version-prefix|command-args>]

Supported commands is:

  • install
  • uninstall (All except the latest version)
  • global
  • local
  • prefix

Original subcommands is:

  • update-major: Update the major version of the currently active version
  • update-minor: Update the minor version of the currently active version
  • update-revision: Update the revision of the currently active version

Installation

Replaces '**env' with 'pyenv', 'rbenv', etc.

git clone https://github.com/momo-lab/xxenv-latest.git "$(**env root)"/plugins/xxenv-latest

Usage example

Install latest version of Python.

$ pyenv latest install
Latest version is '3.7.2'
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
Installed Python-3.7.2 to /home/username/.pyenv/versions/3.7.2

Install 2.7-based version of Python.

$ pyenv latest install 2.7
Latest version is '2.7.15'
Downloading Python-2.7.15.tar.xz...
-> https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz
Installing Python-2.7.15...
Installed Python-2.7.15 to /home/username/.pyenv/versions/2.7.15

Uninstall all expect the latest 2.7-based version of Python.

$ pyenv versions
  2.7.13
  2.7.14
  2.7.15
  3.7.1
* 3.7.2 (set by /home/username/.pyenv/version)
$ pyenv latest uninstall 2.7
pyenv: remove /home/username/.pyenv/versions/2.7.13? y
pyenv: remove /home/username/.pyenv/versions/2.7.14? y
$ pyenv versions
  2.7.15
  3.7.1
* 3.7.2 (set by /home/username/.pyenv/versions/2.7.15)

Update the major version, minor version or revision of the currently active version to the latest.

$ pyenv install --list
...
3.6.15
...
3.9.10
...
3.10.2
...
$ pyenv global
3.6.0
$ pyenv latest update-revision
Latest version is '3.6.15'
Downloading Python-3.6.15.tar.xz...
-> https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
Installing Python-3.6.15...
...
Installed Python-3.6.15 to /home/username/.pyenv/versions/3.6.15
$ pyenv global
3.6.15
$ pyenv local 3.9.0
$ pyenv latest update-revision
Latest version is '3.9.10'
Downloading Python-3.9.10.tar.xz...
-> https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tar.xz
Installing Python-3.9.10...
Installed Python-3.9.10 to /home/username/.pyenv/versions/3.9.10
$ pyenv local
3.9.10
$ pyenv latest update-minor
Latest version is '3.10.2'
Downloading Python-3.10.2.tar.xz...
-> https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz
Installing Python-3.10.2...
Installed Python-3.10.2 to /home/username/.pyenv/versions/3.10.2
$ pyenv local
3.10.2
$ pyenv global
3.6.15

Set the global Python latest version.

$ pyenv latest global
$ python --version
Python 3.7.2

Print, but not install the latest 2.7-based version of Python

$ pyenv latest --print 2.7
2.7.15

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].