From 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Fri, 17 Jul 2020 09:19:06 -0300 Subject: Deleted fisher stuff --- .../spacefish/functions/__sf_section_rust.fish | 45 ---------------------- 1 file changed, 45 deletions(-) delete mode 100644 .config/fisher/github.com/matchai/spacefish/functions/__sf_section_rust.fish (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_rust.fish') diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_rust.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_rust.fish deleted file mode 100644 index f60ff7a4..00000000 --- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_rust.fish +++ /dev/null @@ -1,45 +0,0 @@ -# -# Rust -# -# Rust is a systems programming language sponsored by Mozilla Research. -# Link: https://www.rust-lang.org - -function __sf_section_rust -d "Display the current Rust version" - # ------------------------------------------------------------------------------ - # Configuration - # ------------------------------------------------------------------------------ - - __sf_util_set_default SPACEFISH_RUST_SHOW true - __sf_util_set_default SPACEFISH_RUST_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX - __sf_util_set_default SPACEFISH_RUST_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX - __sf_util_set_default SPACEFISH_RUST_SYMBOL "𝗥 " - __sf_util_set_default SPACEFISH_RUST_COLOR red - __sf_util_set_default SPACEFISH_RUST_VERBOSE_VERSION false - - # ------------------------------------------------------------------------------ - # Section - # ------------------------------------------------------------------------------ - - # Show current version of Rust - [ $SPACEFISH_RUST_SHOW = false ]; and return - - # Ensure the rustc command is available - type -q rustc; or return - - if not test -f Cargo.toml \ - -o (count *.rs) -gt 0 - return - end - - set -l rust_version (rustc --version | string split ' ')[2] - - if test $SPACEFISH_RUST_VERBOSE_VERSION = false - set rust_version (string split '-' $rust_version)[1] # Cut off -suffixes from version. "v1.30.0-beta" vs "v1.30.0" - end - - __sf_lib_section \ - $SPACEFISH_RUST_COLOR \ - $SPACEFISH_RUST_PREFIX \ - "$SPACEFISH_RUST_SYMBOL"v"$rust_version" \ - $SPACEFISH_RUST_SUFFIX -end -- cgit v1.2.3