diff --git a/system-bin/processor-performance b/system-bin/processor-performance index 6a03d94..bde5d8d 100755 --- a/system-bin/processor-performance +++ b/system-bin/processor-performance @@ -1,5 +1,10 @@ #!/usr/bin/env sh -if [ "$1" == "start" ]; then +if [ "$1" == "start" ] && [ -z "$2" ]; then + echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo + for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done + exit +elif [ "$1" == "start" ] && [ "$2" == "turbo" ]; then + echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done exit elif [ "$1" == "stop" ]; then diff --git a/user-config/bashrc b/user-config/bashrc index 9bf0489..fb6ff59 100644 --- a/user-config/bashrc +++ b/user-config/bashrc @@ -191,6 +191,12 @@ alias pkgfile='pkgfile -v' alias hibernate='systemctl hibernate' alias shutdown='shutdown -n now' +# Alias for going to a temporal dir +alias cdtemp='cd $(mktemp -d)' + +# Alias to show ip addresses in short and color +alias ipa='ip -c -br a' + # Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin #install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'