1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Remove shebang lines from scripts for performance

All scripts in libexec/ (excluding pyenv) are called through pyenv,
therefore the shebang lines are not necessary. On some systems this
provides a measurable increase in performance of the shell prompt.

Related to pyenv/pyenv-virtualenv#259
This commit is contained in:
Casey McGinty
2018-04-30 21:56:09 -07:00
committed by Daniel Hahler
parent 7d02b2463b
commit 83e5459cfb
32 changed files with 1 additions and 44 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Rehash pyenv shims (run this after installing executables)
set -e
@@ -62,7 +61,6 @@ fi
# serves as a locking mechanism.
create_prototype_shim() {
cat > "$PROTOTYPE_SHIM_PATH" <<SH
#!/usr/bin/env bash
set -e
[ -n "\$PYENV_DEBUG" ] && set -x