From 92f3789abbdd70bf00436f602aa73e3520548639 Mon Sep 17 00:00:00 2001 From: frostming Date: Thu, 12 Apr 2018 10:51:28 +0800 Subject: [PATCH] Mention scripts section in doc --- docs/advanced.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/advanced.rst b/docs/advanced.rst index dfa7356a..60498e05 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -319,6 +319,19 @@ To prevent pipenv from loading the ``.env`` file, set the ``PIPENV_DONT_LOAD_ENV $ PIPENV_DONT_LOAD_ENV=1 pipenv shell +☤ Custom Script Shortcuts +----------------------------- + +``pipenv`` supports to customize shortcuts in the ``scripts`` section. ``pipenv run`` will automatically load it and find the correct command to replace with. Given the ``Pipfile``:: + + [scripts] + printfoo = "python -c \"print('foo')\"" + +You can type in your terminal to run:: + + $ pipenv run printfoo + foo + ☤ Support for Environment Variables -----------------------------------