mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-26 09:42:51 +03:00
Switch rust to rustc better
This commit is contained in:
parent
6b03eb4798
commit
b8401770dc
@ -5,8 +5,6 @@ function _tide_remove_unusable_items
|
||||
switch $item
|
||||
case virtual_env
|
||||
set cliName python
|
||||
case rust
|
||||
set cliName rustc
|
||||
end
|
||||
|
||||
if not type -q $cliName
|
||||
|
@ -69,9 +69,9 @@ tide_right_prompt_item_separator_same_color_color 949494
|
||||
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php vi_mode chruby
|
||||
tide_right_prompt_prefix ''
|
||||
tide_right_prompt_suffix ''
|
||||
tide_rustcbg_color 444444
|
||||
tide_rustccolor 00AFAF
|
||||
tide_rustcicon ''
|
||||
tide_rustc_bg_color 444444
|
||||
tide_rustc_color 00AFAF
|
||||
tide_rustc_icon ''
|
||||
tide_status_failure_bg_color 444444
|
||||
tide_status_failure_color D70000
|
||||
tide_status_failure_icon '✘'
|
||||
|
@ -35,8 +35,8 @@ tide_right_prompt_frame_color brblack
|
||||
tide_right_prompt_item_separator_same_color_color brblack
|
||||
tide_chruby_bg_color black
|
||||
tide_chruby_color red
|
||||
tide_rustcbg_color black
|
||||
tide_rustccolor cyan
|
||||
tide_rustc_bg_color black
|
||||
tide_rustc_color cyan
|
||||
tide_status_failure_bg_color black
|
||||
tide_status_failure_color red
|
||||
tide_status_success_bg_color black
|
||||
|
@ -70,9 +70,9 @@ tide_right_prompt_item_separator_same_color_color 949494
|
||||
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php chruby
|
||||
tide_right_prompt_prefix ' '
|
||||
tide_right_prompt_suffix ''
|
||||
tide_rustcbg_color normal
|
||||
tide_rustccolor 00AFAF
|
||||
tide_rustcicon ''
|
||||
tide_rustc_bg_color normal
|
||||
tide_rustc_color 00AFAF
|
||||
tide_rustc_icon ''
|
||||
tide_status_failure_bg_color normal
|
||||
tide_status_failure_color D70000
|
||||
tide_status_failure_icon '✘'
|
||||
|
@ -35,8 +35,8 @@ tide_right_prompt_frame_color brblack
|
||||
tide_right_prompt_item_separator_same_color_color brblack
|
||||
tide_chruby_bg_color normal
|
||||
tide_chruby_color red
|
||||
tide_rustcbg_color normal
|
||||
tide_rustccolor cyan
|
||||
tide_rustc_bg_color normal
|
||||
tide_rustc_color cyan
|
||||
tide_status_failure_bg_color normal
|
||||
tide_status_failure_color red
|
||||
tide_status_success_bg_color normal
|
||||
|
@ -70,9 +70,9 @@ tide_right_prompt_item_separator_same_color_color 949494
|
||||
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php vi_mode chruby
|
||||
tide_right_prompt_prefix ''
|
||||
tide_right_prompt_suffix ''
|
||||
tide_rustcbg_color FF8700
|
||||
tide_rustccolor 2E3436
|
||||
tide_rustcicon ''
|
||||
tide_rustc_bg_color FF8700
|
||||
tide_rustc_color 2E3436
|
||||
tide_rustc_icon ''
|
||||
tide_status_failure_bg_color CC0000
|
||||
tide_status_failure_color FFFF00
|
||||
tide_status_failure_icon '✘'
|
||||
|
@ -35,8 +35,8 @@ tide_right_prompt_frame_color brblack
|
||||
tide_right_prompt_item_separator_same_color_color brblack
|
||||
tide_chruby_bg_color red
|
||||
tide_chruby_color black
|
||||
tide_rustcbg_color yellow
|
||||
tide_rustccolor black
|
||||
tide_rustc_bg_color yellow
|
||||
tide_rustc_color black
|
||||
tide_status_failure_bg_color red
|
||||
tide_status_failure_color bryellow
|
||||
tide_status_success_bg_color black
|
||||
|
@ -4,16 +4,16 @@ function _rustc
|
||||
_tide_decolor (_tide_item_rustc)
|
||||
end
|
||||
|
||||
set -l rustcir ~/rustcest
|
||||
mkdir -p $rustcir
|
||||
cd $rustcir
|
||||
set -l rustcDir ~/rustcTest
|
||||
mkdir -p $rustcDir
|
||||
cd $rustcDir
|
||||
|
||||
mock rustc --version "echo rustc 1.30.0"
|
||||
set -lx tide_rustcicon
|
||||
set -lx tide_rustc_icon
|
||||
|
||||
_rustc # CHECK:
|
||||
|
||||
touch Cargo.toml
|
||||
_rustc # CHECK: 1.30.0
|
||||
|
||||
rm -r $rustcir
|
||||
rm -r $rustcDir
|
||||
|
Loading…
Reference in New Issue
Block a user