move fish functions to omf plugin
parent
8b35fae1d8
commit
46f0a3f981
@ -1,20 +1,20 @@
|
||||
# NAME
|
||||
# fish - Extend default fish binary
|
||||
# omf - Oh My Fish helper
|
||||
#
|
||||
# DESCRIPTION
|
||||
# Extend fish binary to support plugins and themes installation
|
||||
#
|
||||
function fish -d "Extend fish binary"
|
||||
function omf -d "Oh My Fish helper"
|
||||
if test (count $argv) -gt 0
|
||||
switch $argv[1]
|
||||
case 'install'
|
||||
fish.packages --install
|
||||
omf.packages --install
|
||||
case 'update'
|
||||
fish.packages --update
|
||||
omf.packages --update
|
||||
case '*'
|
||||
command fish $argv
|
||||
omf.helper
|
||||
end
|
||||
else
|
||||
command fish
|
||||
omf.helper
|
||||
end
|
||||
end
|
@ -0,0 +1,15 @@
|
||||
# NAME
|
||||
# omf.helper - Prints Oh My Fish help
|
||||
#
|
||||
# DESCRIPTION
|
||||
# Prints all functions supported by Oh My Fish helper
|
||||
#
|
||||
function omf.helper -d 'Prints all functions supported by Oh My Fish helper'
|
||||
omf.log normal 'Oh My Fish is a package manager for fish shell. This is a'
|
||||
omf.log normal 'basic help message containing pointers to more information.'
|
||||
omf.log normal ''
|
||||
omf.log normal ' Examples:'
|
||||
omf.log normal ' omf install'
|
||||
omf.log normal ' omf update'
|
||||
end
|
||||
|
Loading…
Reference in New Issue