From a82f56f09a957e0ecc2a5b33a5033eb196b0d5ca Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 3 Aug 2016 22:29:27 +0500 Subject: [zsh] New commands. * Set governor function (setgov) * Ledger alias to show current balance (balc) * Port check alias (portcheck) --- files/.zsh/rc/S50_functions | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'files/.zsh/rc/S50_functions') diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index b3b09ff..be73970 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -40,4 +40,28 @@ EOM stocks "$1=x" } +setgov() { + GOVS=($(cpufreq-info -g)) + + if [ -z "$1" ] ; then + cat <