oh-my-fish/functions/Plugin.fish

12 lines
323 B
Fish
Raw Normal View History

2015-05-26 13:28:06 +00:00
function Plugin --argument-names name
2015-05-26 13:48:21 +00:00
set -g fish_plugins $fish_plugins $name
2015-05-26 13:28:06 +00:00
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