mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
29 lines
605 B
Fish
29 lines
605 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 'self-update'
|
|
omf.git --update $fish_path
|
|
|
|
if [ $status -eq 0 ]
|
|
omf.log 'green' 'Oh My Fish has been successfully updated.'
|
|
end
|
|
case '*'
|
|
omf.helper
|
|
end
|
|
else
|
|
omf.helper
|
|
end
|
|
end
|