mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-29 22:33:05 +03:00
Also check for python3 before removing item (fixes #162)
This commit is contained in:
parent
a85c577c81
commit
24b981e97c
@ -1,13 +1,13 @@
|
|||||||
function _tide_remove_unusable_items
|
function _tide_remove_unusable_items
|
||||||
# Remove tool-specific items for tools the machine doesn't have installed
|
# Remove tool-specific items for tools the machine doesn't have installed
|
||||||
for item in chruby git nvm php rustc virtual_env
|
for item in chruby git nvm php rustc virtual_env
|
||||||
set -l cli_name $item
|
set -l cli_names $item
|
||||||
switch $item
|
switch $item
|
||||||
case virtual_env
|
case virtual_env
|
||||||
set cli_name python
|
set cli_names python python3
|
||||||
end
|
end
|
||||||
|
|
||||||
if not type -q $cli_name
|
if not type -q $cli_names
|
||||||
_tide_find_and_remove $item tide_left_prompt_items
|
_tide_find_and_remove $item tide_left_prompt_items
|
||||||
_tide_find_and_remove $item tide_right_prompt_items
|
_tide_find_and_remove $item tide_right_prompt_items
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user