mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-02 22:13:47 +08:00
29 lines
583 B
Fish
29 lines
583 B
Fish
# NAME
|
|
# omf.packages - Manage all plugins and themes
|
|
#
|
|
# SYNOPSIS
|
|
# omf.packages [OPTIONS]
|
|
#
|
|
# OPTIONS
|
|
# --install
|
|
# Install all packages
|
|
# --update
|
|
# Update all packages
|
|
#
|
|
# DESCRIPTION
|
|
# Manage all plugins and themes specified on the $fish_plugins
|
|
# and $fish_theme variables
|
|
#
|
|
function omf.packages --argument-names options -d 'Manage all plugins and themes'
|
|
set -l modified_packages 0
|
|
|
|
switch $options
|
|
case "--install"
|
|
omf.packages.install
|
|
case "--update"
|
|
omf.packages.update
|
|
case "*"
|
|
omf.log red 'Unknown option'
|
|
end
|
|
end
|