summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/.zshrc b/etc/.zshrc
index 2661061..07bf402 100644
--- a/etc/.zshrc
+++ b/etc/.zshrc
@@ -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