mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
20 lines
291 B
Fish
20 lines
291 B
Fish
# RUN: %fish %s
|
|
_tide_parent_dirs
|
|
|
|
function _rustc
|
|
_tide_decolor (_tide_item_rustc)
|
|
end
|
|
|
|
set -l rustcDir (mktemp -d)
|
|
cd $rustcDir
|
|
|
|
mock rustc --version "echo rustc 1.30.0"
|
|
set -lx tide_rustc_icon
|
|
|
|
_rustc # CHECK:
|
|
|
|
touch Cargo.toml
|
|
_rustc # CHECK: 1.30.0
|
|
|
|
command rm -r $rustcDir
|