summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.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_haskell.fish
parent743caecfc68bb6d28f8de2e80bce671e42601c6a (diff)
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.fish38
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.fish
deleted file mode 100644
index e31dca91..00000000
--- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_haskell.fish
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Haskell Stack
-#
-# An advanced, purely functional programming language.
-# Link: https://www.haskell.org/
-
-function __sf_section_haskell -d "Show current version of Haskell Tool Stack"
- # ------------------------------------------------------------------------------
- # Configuration
- # ------------------------------------------------------------------------------
-
- __sf_util_set_default SPACEFISH_HASKELL_SHOW true
- __sf_util_set_default SPACEFISH_HASKELL_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX
- __sf_util_set_default SPACEFISH_HASKELL_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
- __sf_util_set_default SPACEFISH_HASKELL_SYMBOL "λ "
- __sf_util_set_default SPACEFISH_HASKELL_COLOR red
-
- # ------------------------------------------------------------------------------
- # Section
- # ------------------------------------------------------------------------------
-
- # Show current version of Haskell Tool Stack.
- [ $SPACEFISH_HASKELL_SHOW = false ]; and return
-
- # Ensure the stack command is available
- type -q stack; or return
-
- # If there are stack files in current directory
- [ -f ./stack.yaml ]; or return
-
- set -l haskell_version (stack ghc -- --numeric-version --no-install-ghc)
-
- __sf_lib_section \
- $SPACEFISH_HASKELL_COLOR \
- $SPACEFISH_HASKELL_PREFIX \
- "$SPACEFISH_HASKELL_SYMBOL"v"$haskell_version" \
- $SPACEFISH_HASKELL_SUFFIX
-end