bash: aliases: add smt-on/smt-off
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Wed, 8 Jan 2025 20:11:42 +0000 (21:11 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Wed, 8 Jan 2025 20:11:42 +0000 (21:11 +0100)
home-manager/profiles/bash.nix

index 54eeebce582fa6ff58d22c06742b4a8b092cfbb2..f8033c02d50d8eea1af82746cb345fca93194d97 100644 (file)
@@ -39,6 +39,8 @@ with lib;
       sr = "sudo systemctl restart";
       ssh-unknown = "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null";
       st = "sudo systemctl status";
+      smt-on = "echo on | sudo tee /sys/devices/system/cpu/smt/control";
+      smt-off = "echo off | sudo tee /sys/devices/system/cpu/smt/control";
       t = "tmux";
       t0 = "tmux new -t 0";
       t1 = "tmux new -t 1";