Created
November 20, 2013 12:53
-
-
Save gleero/7562662 to your computer and use it in GitHub Desktop.
Файл: ~/dotfiles/private/bash_profile.sh Либо можно скопировать это добро напрямую в ~/.bash_profile или в ~/.bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Private Bash Profile | |
# Can be used for other settings you don’t want to commit | |
echo "" | |
echo "$YELLOW Hostname$NOCOLOR: $WHITE`hostname`$NOCOLOR" | |
echo "$YELLOW Inet IP$NOCOLOR: $WHITE`ip`$NOCOLOR" | |
echo "$YELLOW Local IP$NOCOLOR: $WHITE`localip`$NOCOLOR" | |
echo "$YELLOW Uptime$NOCOLOR: $WHITE`uptime | awk -F 'up ' '{ print $2 }' | awk -F ',' '{ print $1 }'`$NOCOLOR" | |
echo "$YELLOW SSD usage$NOCOLOR: $WHITE`df / | awk '{print $5}' | grep "%"`$NOCOLOR" | |
echo "$YELLOW HDD usage$NOCOLOR: $WHITE`df /Volumes/HDD | awk '{print $5}' | grep "%"`$NOCOLOR" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment