From d5ac10dadd620962c67a87da2b4bc69ff0b3a3a4 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 19 Nov 2021 12:22:10 +0300 Subject: [PATCH] Usage examples --- README | 2 ++ USAGE | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 USAGE diff --git a/README b/README index 5f42e11..bf1660d 100644 --- a/README +++ b/README @@ -20,3 +20,5 @@ Optimizations: * varstash library is loaded without checking if autoenv needs it -- it is faster to load it anyway, than to invoke grep every time * ctime is used instead of mtime, without size storage (unnecessary) + +Look USAGE for examples. diff --git a/USAGE b/USAGE new file mode 100644 index 0000000..a823159 --- /dev/null +++ b/USAGE @@ -0,0 +1,18 @@ +Some random Python project: + + proj/.autoenv.zsh: + autostash PATH + path=(~/local/stow/py310/bin $path) + . ~w/pyderasn-venv/bin/activate + export -TU PYTHONPATH pythonpath + pythonpath=(. src $pythonpath) + proj/.autoenv_leave.zsh: + deactivate + +Some random C project: + + proj/.autoenv.zsh: + autostash LD_LIBRARY_PATH MANPATH + ld_library_path=(~w/libressl/lib ~w/local/lib $ld_library_path) + manpath=(~w/libressl/share/man $manpath) + autostash NSPR_LOG_MODULES=all:5 SSLDEBUG=1 SSLTRACE=125 -- 2.44.0