mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Speed up rust item, type is slow, command is fast
This commit is contained in:
parent
09f2a7583b
commit
581013beff
@ -1,5 +1,5 @@
|
||||
function _tide_item_rust
|
||||
if type --quiet rustc && test -e Cargo.toml -o (count *.rs) -gt 0
|
||||
if command --quiet rustc && test -e Cargo.toml -o (count *.rs) -gt 0
|
||||
set -l rustVersion (rustc --version | string split ' ')[2]
|
||||
|
||||
if test "$tide_rust_verbose_version" = false
|
||||
|
@ -1,9 +1,9 @@
|
||||
function _tide_item_virtual_env
|
||||
if set -q VIRTUAL_ENV
|
||||
set_color $tide_virtual_env_color
|
||||
|
||||
set -l splitVirtualEnv (string split '/' "$VIRTUAL_ENV")
|
||||
|
||||
set_color $tide_virtual_env_color
|
||||
|
||||
if test "$tide_virtual_env_display_mode" = 'projectName'
|
||||
printf '%s' {$tide_virtual_env_icon}' ' $splitVirtualEnv[-2]
|
||||
else if test "$tide_virtual_env_display_mode" = 'venvName'
|
||||
|
Loading…
Reference in New Issue
Block a user