asdf/lib/commands/plugin-list.sh
2015-06-14 18:55:20 +05:30

12 lines
258 B
Bash

plugin_list_command() {
local plugins_path=$(get_plugin_path)
if ls $plugins_path &> /dev/null; then
for plugin_path in $plugins_path/* ; do
echo "$(basename $plugin_path)"
done
else
echo 'Oohes nooes ~! No plugins installed'
fi
}