oh-my-fish/tests/test_runner.fish
Bruno Pinto bc0d4847e8 Resolve #30: omf doctor command
In order to pro-actively diagnose an issue on someone's computer, a
`omf doctor' command is being added. This command will initially check
errors that could cause a theme to not be loaded, but in the future more
checks are going to be added to prevent issues from being created for
problems that are fixable by the Oh My Fish user alone.
2015-10-03 21:04:30 +01:00

17 lines
244 B
Fish
Executable File

#!/usr/bin/env fish
# TODO: This is only a basic draft.
set -l return_code 0
set commands "omf help" "omf doctor" "omf install apt"
for cmd in $commands
echo \$ $cmd
if not eval $cmd
set return_code 1
end;
end;
exit $return_code