mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Simplify plugin_is_prompt check.
This commit is contained in:
parent
fb0bd0213e
commit
3fb0448aef
1 changed files with 5 additions and 15 deletions
18
fisher.fish
18
fisher.fish
|
@ -1351,20 +1351,10 @@ end
|
||||||
|
|
||||||
|
|
||||||
function __fisher_plugin_is_prompt -a path
|
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
|
||||||
return
|
if test -e "$file"
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in a new issue