mirror of https://github.com/jorgebucaran/fisher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|