summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.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_aws.fish
parent743caecfc68bb6d28f8de2e80bce671e42601c6a (diff)
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.fish39
1 files changed, 0 insertions, 39 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.fish
deleted file mode 100644
index fc33ac6f..00000000
--- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_aws.fish
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# Amazon Web Services (AWS)
-#
-# The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.
-# Link: https://aws.amazon.com/cli/
-
-function __sf_section_aws -d "Display the selected aws profile"
- # ------------------------------------------------------------------------------
- # Configuration
- # ------------------------------------------------------------------------------
-
- __sf_util_set_default SPACEFISH_AWS_SHOW true
- __sf_util_set_default SPACEFISH_AWS_PREFIX "using "
- __sf_util_set_default SPACEFISH_AWS_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX
- __sf_util_set_default SPACEFISH_AWS_SYMBOL "☁️ "
- __sf_util_set_default SPACEFISH_AWS_COLOR ff8700
-
- # ------------------------------------------------------------------------------
- # Section
- # ------------------------------------------------------------------------------
-
- # Show the selected AWS-cli profile
- [ $SPACEFISH_AWS_SHOW = false ]; and return
-
- # Ensure the aws command is available
- type -q aws; or return
-
- # Early return if there's no AWS_PROFILE, or it's set to default
- if test -z "$AWS_PROFILE" \
- -o "$AWS_PROFILE" = "default"
- return
- end
-
- __sf_lib_section \
- $SPACEFISH_AWS_COLOR \
- $SPACEFISH_AWS_PREFIX \
- "$SPACEFISH_AWS_SYMBOL""$AWS_PROFILE" \
- $SPACEFISH_AWS_SUFFIX
-end