diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
commit | 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch) | |
tree | ff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish | |
parent | 743caecfc68bb6d28f8de2e80bce671e42601c6a (diff) |
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish deleted file mode 100644 index d46a79f1..00000000 --- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_dotnet.fish +++ /dev/null @@ -1,50 +0,0 @@ -# -# .NET -# -# .NET Framework is a software framework developed by Microsoft. -# It includes a large class library and provides language interoperability -# across several programming languages. -# Link: https://www.microsoft.com/net - -function __sf_section_dotnet -d "Display the .NET SDK version" - # ------------------------------------------------------------------------------ - # Configuration - # ------------------------------------------------------------------------------ - - __sf_util_set_default SPACEFISH_DOTNET_SHOW true - __sf_util_set_default SPACEFISH_DOTNET_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX - __sf_util_set_default SPACEFISH_DOTNET_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX - __sf_util_set_default SPACEFISH_DOTNET_SYMBOL ".NET " - __sf_util_set_default SPACEFISH_DOTNET_COLOR "af00d7" # 128 in the original version, but renders as blue in iTerm2? - - # ------------------------------------------------------------------------------ - # Section - # ------------------------------------------------------------------------------ - - # Show current version of .NET SDK - [ $SPACEFISH_DOTNET_SHOW = false ]; and return - - # Ensure the dotnet command is available - type -q dotnet; or return - - if not test -f project.json \ - -o -f global.json \ - -o -f paket.dependencies \ - -o (count *.csproj) -gt 0 \ - -o (count *.fsproj) -gt 0 \ - -o (count *.xproj) -gt 0 \ - -o (count *.sln) -gt 0 - return - end - - # From the - # dotnet-cli automatically handles SDK pinning (specified in a global.json file) - # therefore, this already returns the expected version for the current directory - set -l dotnet_version (dotnet --version 2>/dev/null) - - __sf_lib_section \ - $SPACEFISH_DOTNET_COLOR \ - $SPACEFISH_DOTNET_PREFIX \ - "$SPACEFISH_DOTNET_SYMBOL""$dotnet_version" \ - $SPACEFISH_DOTNET_SUFFIX -end |