mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
25 lines
526 B
Fish
25 lines
526 B
Fish
|
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
||
|
set -l plugins foo bar baz norf
|
||
|
set -l prompts baz norf
|
||
|
|
||
|
function -S setup
|
||
|
mkdir -p $path/{$plugins}
|
||
|
|
||
|
touch $path/{$prompts}/fish_prompt.fish
|
||
|
|
||
|
set -U fisher_prompt $prompts[1]
|
||
|
|
||
|
for plugin in $plugins
|
||
|
__fisher_plugin_can_enable $plugin $path/$plugin
|
||
|
echo $status
|
||
|
end > $path/output
|
||
|
end
|
||
|
|
||
|
function -S teardown
|
||
|
rm -rf $path
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Check whether a plugin is the current prompt or not a prompt."
|
||
|
0 0 0 1 = (cat $path/output)
|
||
|
end
|