mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-28 03:09:31 +08:00
12 lines
322 B
Fish
12 lines
322 B
Fish
function Plugin --argument-names name
|
|
set -g fish_plugins $fish_plugins $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 'omf install' to download and install it."
|
|
set_color normal
|
|
end
|
|
end
|