23 lines
432 B
Fish
Raw Normal View History

2015-05-26 14:48:21 +01:00
# NAME
2015-05-31 12:31:55 +01:00
# omf - Oh My Fish helper
2015-05-26 14:48:21 +01:00
#
# DESCRIPTION
# Extend fish binary to support plugins and themes installation
#
2015-05-31 12:31:55 +01:00
function omf -d "Oh My Fish helper"
2015-05-26 14:48:21 +01:00
if test (count $argv) -gt 0
switch $argv[1]
case 'install'
2015-05-31 12:31:55 +01:00
omf.packages --install
2015-05-26 14:48:21 +01:00
case 'update'
2015-05-31 12:31:55 +01:00
omf.packages --update
2015-05-31 13:29:05 +01:00
case 'list' 'ls'
omf.packages --list
2015-05-26 14:48:21 +01:00
case '*'
2015-05-31 12:31:55 +01:00
omf.helper
2015-05-26 14:48:21 +01:00
end
else
2015-05-31 12:31:55 +01:00
omf.helper
2015-05-26 14:48:21 +01:00
end
end