forked from onlythefinestwilldo/Quality.Junk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
archey
executable file
·38 lines (33 loc) · 1.14 KB
/
archey
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [[ $1 == "-c" ]]; then
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
LRED='\033[01;31m'
RED='\033[00;31m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
BLUE='\033[00;34m'
RESTORE='\033[0m'
fi
# Variables
host=$(hostname | sed 's/.local//g')
user=$(whoami)
OS="OS X $(sw_vers -productVersion)"
shell="$SHELL"
disk=`df | head -2 | tail -1 | awk '{print $5}'`
brew_packages="`brew list -l | wc -l | awk '{print $1 }'`"
echo -e "
${GREEN} ###
${GREEN} ####
${GREEN} ###
${GREEN} ####### ## #######${RESTORE} User: $user
${YELLOW} ######################${RESTORE} Hostname: $host
${YELLOW} #####################${RESTORE} $OS
${LRED} ####################${RESTORE} Kernel: $(uname)
${RED} ####################${RESTORE} Shell: $shell
${RED} #####################${RESTORE} Disk: $disk
${PURPLE} ######################${RESTORE} Packages(brew): $brew_packages
${PURPLE} ####################
${BLUE} ################
${BLUE} #### #####
"