Simplify plugin_is_prompt check.

This commit is contained in:
Jorge Bucaran 2016-05-02 03:02:43 +09:00
parent b1f59fa699
commit 966d168dbc
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -1351,20 +1351,10 @@ end
function __fisher_plugin_is_prompt -a path
if test -e $path/fish_prompt.fish
for file in "$path"/{,functions/}{fish_prompt,fish_right_prompt}.fish
if test -e "$file"
return
end
if test -e $path/functions/fish_prompt.fish
return
end
if test -e $path/fish_right_prompt.fish
return
end
if test -e $path/functions/fish_right_prompt.fish
return
end
return 1