mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-15 22:32:45 +08:00
10 lines
280 B
Fish
10 lines
280 B
Fish
![]() |
function Plugin --argument-names name
|
||
|
if [ -e $fish_path/plugins/$name -o -e $fish_custom/plugins/$name ]
|
||
|
import plugins/$name
|
||
|
else
|
||
|
set_color red
|
||
|
echo "Plugin '$name' is not installed. Run 'fish install' to download and install it."
|
||
|
set_color normal
|
||
|
end
|
||
|
end
|