From 61b7666a76b1d848c53b98af1194ccbe0c6d1789 Mon Sep 17 00:00:00 2001 From: Francesco Franchina Date: Mon, 25 Oct 2021 23:18:28 +0200 Subject: [PATCH] direnv: clarification in the examples and Italian translation (#7001) --- pages.it/common/direnv.md | 24 ++++++++++++++++++++++++ pages/common/direnv.md | 10 +++++----- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 pages.it/common/direnv.md diff --git a/pages.it/common/direnv.md b/pages.it/common/direnv.md new file mode 100644 index 0000000000..4406cfeda8 --- /dev/null +++ b/pages.it/common/direnv.md @@ -0,0 +1,24 @@ +# direnv + +> Estensione della shell per aggiungere o rimuovere variabili d'ambiente in base alla cartella corrente. +> Maggiori informazioni: . + +- Permette il caricamento del `.envrc` presente nella cartella corrente: + +`direnv allow {{.}}` + +- Revoca il permesso del `.envrc` presente nella cartella corrente: + +`direnv deny {{.}}` + +- Permette la modifica del `.envrc` nell'editor di testo predefinito, in seguito ricarica l'ambiente: + +`direnv edit {{.}}` + +- Ricarica l'ambiente corrente: + +`direnv reload` + +- Mostra delle informazioni di debug: + +`direnv status` diff --git a/pages/common/direnv.md b/pages/common/direnv.md index b7396b77be..78ccb1c039 100644 --- a/pages/common/direnv.md +++ b/pages/common/direnv.md @@ -3,17 +3,17 @@ > Shell extension to load and unload environment variables depending on the current directory. > More information: . -- Grant direnv permission to load the specified `.envrc`: +- Grant direnv permission to load the `.envrc` present in the current directory: -`direnv allow` +`direnv allow {{.}}` -- Revoke the authorization of a given `.envrc`: +- Revoke the authorization to load the `.envrc` present in the current directory: -`direnv deny` +`direnv deny {{.}}` - Edit the `.envrc` file in the default text editor and reload the environment on exit: -`direnv edit .` +`direnv edit {{.}}` - Trigger a reload of the environment: