summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2020-07-17 09:19:06 -0300
committerRoger Gonzalez <roger@rogs.me>2020-07-17 09:19:06 -0300
commit9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch)
treeff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish
parent743caecfc68bb6d28f8de2e80bce671e42601c6a (diff)
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish41
1 files changed, 0 insertions, 41 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish
deleted file mode 100644
index aeba4feb..00000000
--- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_pyenv.fish
+++ /dev/null
@@ -1,41 +0,0 @@
-# pyenv
-#
-
-function __sf_section_pyenv -d "Show current version of pyenv Python, including system."
- # ------------------------------------------------------------------------------
- # Configuration
- # ------------------------------------------------------------------------------
-
- __sf_util_set_default SPACEFISH_PYENV_SHOW true
- __sf_util_set_default SPACEFISH_PYENV_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
- __sf_util_set_default SPACEFISH_PYENV_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
- __sf_util_set_default SPACEFISH_PYENV_SYMBOL "🐍 "
- __sf_util_set_default SPACEFISH_PYENV_COLOR yellow
-
- # ------------------------------------------------------------------------------
- # Section
- # ------------------------------------------------------------------------------
-
- # Show pyenv python version
- [ $SPACEFISH_PYENV_SHOW = false ]; and return
-
- # Ensure the pyenv command is available
- type -q pyenv; or return
-
- # Show pyenv python version only for Python-specific folders
- if not test -n "$PYENV_VERSION" \
- -o -f .python-version \
- -o -f requirements.txt \
- -o -f pyproject.toml \
- -o (count *.py) -gt 0
- return
- end
-
- set -l pyenv_status (pyenv version-name 2>/dev/null) # This line needs explicit testing in an enviroment that has pyenv.
-
- __sf_lib_section \
- $SPACEFISH_PYENV_COLOR \
- $SPACEFISH_PYENV_PREFIX \
- "$SPACEFISH_PYENV_SYMBOL""$pyenv_status" \
- $SPACEFISH_PYENV_SUFFIX
-end