mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-17 09:26:08 +00:00
bc0d4847e8
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.
17 lines
244 B
Fish
Executable File
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
|