A plugin for Oh My Fish.
Disable system idle sleep while certain commands run.
This plugin currently only works on macOS, contributions to support other OSes are welcome.
omf install caffeinate
You can set which terminal commands should prevent system idle sleep by
setting the variable __caffeinate_include
. If unset the default is git
.
set __caffeinate_include sleep \
git \
cap \
make
Please note that this variable needs to be set before the plugin is loaded by
Oh My Fish, e.g. in ~/.config/fish/conf.d/
in a file that will be loaded
before omf.fish
in that same directory.
MIT © Felix Schäfer et al