mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-02 22:13:47 +08:00
23 lines
432 B
Fish
23 lines
432 B
Fish
# NAME
|
|
# omf - Oh My Fish helper
|
|
#
|
|
# DESCRIPTION
|
|
# Extend fish binary to support plugins and themes installation
|
|
#
|
|
function omf -d "Oh My Fish helper"
|
|
if test (count $argv) -gt 0
|
|
switch $argv[1]
|
|
case 'install'
|
|
omf.packages --install
|
|
case 'update'
|
|
omf.packages --update
|
|
case 'list' 'ls'
|
|
omf.packages --list
|
|
case '*'
|
|
omf.helper
|
|
end
|
|
else
|
|
omf.helper
|
|
end
|
|
end
|