Newer
Older
# ############################################# #
# ~/.zlogin #
# #
# This file is managed by Ansible #
# Manual edition will be overridden #
# #
# https://lab.frogg.it/fcode/ansible/debian #
# #
# ############################################# #
USAGE_FILE=/var/.usage
lsb_release -d | sed 's/Description:/-=VERSION=-\t/g'
echo -e "-=UPTIME=-\t $(uptime)\n"
echo -e "-=WHOisHERE=-\n $(w)\n"
echo -e "\n-=IPs=-\n $(ip -br address|grep UP)\n"
echo -e "-=SCREEN=-\n $(screen -list)"
echo -e "-=DISKSPACE=-"
[[ -n $(zpool list) ]] &> /dev/null && zpool list || df -h -t ext4 --output=source,used,avail,target
echo -e "\n-=USAGE=-"
[[ -e $USAGE_FILE ]] && cat ${USAGE_FILE} || echo "Usage unknown"