diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-04-03 20:47:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-04-03 20:47:01 +0200 |
commit | e5ac4c6608b95a7e08c219d415484ebae744342c (patch) | |
tree | f59da23d44d2ea8a1e618516197d5bb0b734ef6e | |
parent | 24c96ab4c22d708973c47d226ba10a4236c477ee (diff) |
Add ondemand/powersave functions
-rw-r--r-- | etc/.zshrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -181,6 +181,12 @@ function Status Start Stop Restart Reload { } } +function ondemand powersave { + for cpu (/sys/devices/system/cpu/cpu?); do + sudo cpufreq-set -c ${${cpu:t}#cpu} -g ${0} + done +} + # }}} # {{{ ZLE |