Skip to content

Instantly share code, notes, and snippets.

@debxp
Last active February 5, 2025 14:04
Show Gist options
  • Save debxp/8615ebbb40ab91bfec5cecf811094145 to your computer and use it in GitHub Desktop.
Save debxp/8615ebbb40ab91bfec5cecf811094145 to your computer and use it in GitHub Desktop.
Cabeçalho para o terminal
#!/usr/bin/env bash
# Include 'os-release' to grab Debian pretty name...
. /etc/os-release
# Styles...
red="$(tput setaf 1)"
bold="$(tput bold)"
reset="$(tput sgr0)"
# Get terminal col width...
cols=$(tput cols)
# Main...
clear
echo "
$red ⢀⣴⠾⠻⢶⣦⠀$reset ${bold}$PRETTY_NAME${reset}
$red ⣾⠁⢠⠒⠀⣿⡁$reset ${bold}Kernel:${reset} $(uname -rm)
$red ⢿⡄⠘⠷⠚⠋⠀$reset ${bold}Uptime:${reset} $(uptime -p | cut -d' ' -f2-)
$red ⠈⠳⣄⠀⠀⠀⠀$reset ${bold}$USER@$HOSTNAME${reset}
"
printf -- "-%.s" $(seq $cols)
echo -e "\n"
exit 0
@nerun
Copy link

nerun commented Feb 5, 2025

SHOW!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment