summaryrefslogtreecommitdiff
path: root/etc/.zshrc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-04-03 20:47:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-04-03 20:47:01 +0200
commite5ac4c6608b95a7e08c219d415484ebae744342c (patch)
treef59da23d44d2ea8a1e618516197d5bb0b734ef6e /etc/.zshrc
parent24c96ab4c22d708973c47d226ba10a4236c477ee (diff)
Add ondemand/powersave functions
Diffstat (limited to 'etc/.zshrc')
-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