nix/home/program/bash/module/Terminal.nix

11 lines
168 B
Nix

{ ... }: {
text = ''
# Get terminal size.
function tsize() {
local width=$(tput cols)
local height=$(tput lines)
echo "''${width}x''${height}"
}
'';
}