g
direnv
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
g
-
A Journey to Find an Ultimate Development Environment
The purpose of a version manager is to help you navigate or install any tools for development easily. Version Manager can be one tool for each dependency (e.g. NVM, g) or One tool for all dependencies (e.g. asdf, mise).
-
How can I get recent go versions?
I really like g: https://github.com/stefanmaric/g Itβs simple, fast to use, and reliable.
-
Managing multiple Go versions in the local environment
If you are using a Unix based system you can use: https://github.com/stefanmaric/g I use it daily and works like charm, I only had some problems using `godoc` but it is solveble if you set the GOPATH to the go location and not the g installation directory
- How can we push homebrew to update go package?
-
Simple But Not Simple For Me lol
Don't use Brew for Go! Brew is great for a lot of things but but not for Go installation. So far this is the best Go version manager i've found. It can be nice to have different versions easily available. https://github.com/stefanmaric/g
-
NVM equivalent in go?
I used this, easy and stable https://github.com/stefanmaric/g
-
setting up Go 1.17.5 on a chromebook
Whatever the language, I find that using a version manager reduces stress considerably. This is the one I use, but there are others: https://github.com/stefanmaric/g
direnv
-
Mise is a polyglot tool version manager
I switched from asdf to mise after a comment on lobste.rs[1] suggested I do so a few months ago, and I have been very happy with it.
It sands off some of asdf's sharp UI edges and provides a somewhat larger but still reasonable feature set; I've also replaced most of my direnv[2] usage with it.
The mise -> asdf comparison page is useful[3]
1: https://lobste.rs/s/66uxbj/how_love_homebrew#c_mvmsjp
2: https://direnv.net/
3: https://mise.jdx.dev/dev-tools/comparison-to-asdf.html
-
Nix-direnv is a quality of life improvement
I also made the export diff configurable, motivated by this post: https://github.com/direnv/direnv/pull/1233
- Direnv β Unclutter Your .profile
-
Conditional Git Configuration
Nice.
For years I've been using [direnv](https://direnv.net/) for this, setting environment variables which git picks up. This looks like a more feature complete equivalent, although to be honest I only really need switching of committer email and the SSH key used.
- FLaNK 25 December 2023
-
Development Environments with Guix, similar to devenv.sh
Direnv, for the uninitiated, loads and unloads environment variables when directories are entered and exited. Under every project folder there is a `$PROJ_DIR/.envrc` which contains:
-
Emacs Advent Calendar 9: devdocs, code-cells, dREPL, etc.
buffer-env: A pure-Elisp version of the direnv utility. Useful to make Emacs aware of Python virtualenvs (which, judging by the questions posted here, is unfortunately still a complication for a lot of people). Similar to (and inspired by) envrc, but doesn't require the direnv program.
-
golang cli vs env var in windows?
You can look at direnv to see this in action as they wrote shell hooks that get loaded into the shell profile and are executed on every prompt. https://direnv.net/
-
Nix Survival Mode: macOS upgrades won't break Nix anymore
Yes, most Nix users employ https://direnv.net or the equivalent for your IDE of choice. Emacs for instance has https://github.com/purcell/envrc which set per-buffer variables.
- Direnv: Unclutter Your .profile
What are some alternatives?
GVM - Go Version Manager
spaceship-prompt - :rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt
Shadowsocks-Cloak-Installer - A one-key script to setup Cloak plugin with Shadowsocks on your server
Pipenv - Python Development Workflow for Humans.
gvm - Go Version Manager (gvm) enables seamless installing and swapping between Go versions with a single command. This tool manages a Go environment for the user by allowing a user to specify which Go version they wish to use and handling all of the steps to install and configure that Go version. GVM also supports installing Go from the official Golang master branch so that you can easily try the next version of Go without waiting for a pre release build.
lorri - Your project's nix-env
goenv - :blue_car: Like pyenv and rbenv, but for Go.
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
asdf-golang - Go plugin for the asdf version manager
Neovim-from-scratch - π A Neovim config designed from scratch to be understandable
autocomplete - IDE-style autocomplete for your existing terminal & shell
Poetry - Python packaging and dependency management made easy