mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
using --from syntax
This commit is contained in:
parent
235bcf783e
commit
8d7ccec672
@ -34,15 +34,14 @@ function describe_oh_my_fish
|
|||||||
end
|
end
|
||||||
|
|
||||||
function it_loads_all_oh_my_fish_functions
|
function it_loads_all_oh_my_fish_functions
|
||||||
list.erase "$fish_path/functions/" fish_function_path
|
list.erase "$fish_path/functions/" --from fish_function_path
|
||||||
|
|
||||||
load_oh_my_fish
|
load_oh_my_fish
|
||||||
expect $fish_function_path to_include $fish_path/functions/
|
expect $fish_function_path to_include $fish_path/functions/
|
||||||
end
|
end
|
||||||
|
|
||||||
function it_loads_all_selected_plugins
|
function it_loads_all_selected_plugins
|
||||||
list.erase "$fish_path/plugins/bak" fish_function_path
|
list.erase "$fish_path/plugins/bak" "$fish_path/plugins/z" --from fish_function_path
|
||||||
list.erase "$fish_path/plugins/z" fish_function_path
|
|
||||||
|
|
||||||
set fish_plugins bak z
|
set fish_plugins bak z
|
||||||
load_oh_my_fish
|
load_oh_my_fish
|
||||||
@ -51,7 +50,7 @@ function describe_oh_my_fish
|
|||||||
end
|
end
|
||||||
|
|
||||||
function it_loads_plugins_from_custom_folder
|
function it_loads_plugins_from_custom_folder
|
||||||
array.delete "$fish_custom/plugins/example" fish_function_path
|
list.erase "$fish_custom/plugins/example" --from fish_function_path
|
||||||
|
|
||||||
set fish_plugins example
|
set fish_plugins example
|
||||||
load_oh_my_fish
|
load_oh_my_fish
|
||||||
@ -59,7 +58,7 @@ function describe_oh_my_fish
|
|||||||
end
|
end
|
||||||
|
|
||||||
function it_loads_the_selected_theme
|
function it_loads_the_selected_theme
|
||||||
list.erase "$fish_path/themes/l" fish_function_path
|
list.erase "$fish_path/themes/l" --from fish_function_path
|
||||||
|
|
||||||
set fish_theme l
|
set fish_theme l
|
||||||
load_oh_my_fish
|
load_oh_my_fish
|
||||||
|
Loading…
Reference in New Issue
Block a user