From 90bd4aa2a1130a6e8b014ef2edae441cc4087b56 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sat, 22 Feb 2020 20:15:45 +0900 Subject: [PATCH] lscpu.fish: disable file completions, localise var --- share/completions/lscpu.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/lscpu.fish b/share/completions/lscpu.fish index fade51385..17f5b3bc4 100644 --- a/share/completions/lscpu.fish +++ b/share/completions/lscpu.fish @@ -1,5 +1,6 @@ -set __fish_lscpu_columns CPU\tLogical\ CPU\ number\ of\ a\ CPU\nCORE\tLogical\ core\ number\nSOCKET\tLogical\ socket\ number\nBOOK\tLogical\ book\ number\nNODE\tLogical\ NUMA\ node\ number\nCACHE\tInformation\ about\ how\ caches\ are\ shared\nPOLARIZATION\tCPU\ dispatching\ mode\ on\ virtual\ hardware\nADDRESS\tPhysical\ address\nCONFIGURED\tShows\ if\ the\ hypervisor\ has\ allocated\ the\ CPU\nONLINE\tShows\ if\ Linux\ currently\ use\ the\ CPU\nMAXMHZ\tShows\ the\ maximum\ MHz\nMINMHZ\tShows\ the\ minimum\ MHz +set -l __fish_lscpu_columns CPU\tLogical\ CPU\ number\ of\ a\ CPU\nCORE\tLogical\ core\ number\nSOCKET\tLogical\ socket\ number\nBOOK\tLogical\ book\ number\nNODE\tLogical\ NUMA\ node\ number\nCACHE\tInformation\ about\ how\ caches\ are\ shared\nPOLARIZATION\tCPU\ dispatching\ mode\ on\ virtual\ hardware\nADDRESS\tPhysical\ address\nCONFIGURED\tShows\ if\ the\ hypervisor\ has\ allocated\ the\ CPU\nONLINE\tShows\ if\ Linux\ currently\ use\ the\ CPU\nMAXMHZ\tShows\ the\ maximum\ MHz\nMINMHZ\tShows\ the\ minimum\ MHz +complete -c lscpu -f complete -c lscpu -l all -s a -d "Print both online and offline CPUs" complete -c lscpu -l online -s b -d "Print online CPUs only" complete -c lscpu -l offline -s c -d "Print offline CPUs only"