asdf/lib/commands/plugin-list.sh

12 lines
258 B
Bash
Raw Normal View History

plugin_list_command() {
local plugins_path=$(get_plugin_path)
if ls $plugins_path &> /dev/null; then
for plugin_path in $plugins_path/* ; do
2015-06-14 06:25:18 -07:00
echo "$(basename $plugin_path)"
done
else
2015-06-14 06:22:17 -07:00
echo 'Oohes nooes ~! No plugins installed'
fi
}