This commit is contained in:
2026-02-18 10:03:29 +03:00
parent 1b5e642963
commit e20bc8c042
5 changed files with 35 additions and 1 deletions
+15
View File
@@ -119,6 +119,9 @@
s = ''
(){ local val=''${1:-true} vault=''${2:-default}; local file="$HOME/stats/''${vault}.tsv"; mkdir -p "''${file:h}"; printf "%s\t%s\n" "$(date "+%Y-%m-%d %H:%M:%S")" "$val" >> "$file"; }'';
startvm =
"VBoxManage startvm --type=headless src; socat -,cfmakeraw,echo=0,escape=15 TCP4:localhost:2026";
};
initContent = ''
@@ -170,8 +173,20 @@
add-zsh-hook chpwd _ls_after_cd
fi
# mini-neofetch
printf "--- Hi, %s! ---\n" "$USER"
printf "Battery: %s%%\n" "$(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo "N/A")"
printf "Time you live: %s years :)\n" "$(python3 -c "from datetime import datetime; age_years = (datetime.now() - datetime(2006, 6, 16)).total_seconds() / (365.25 * 24 * 3600); print(f'{age_years:.10f}')")"
printf "--\n"
printf "Task to do: \n"
todo sort && todo;
alias дт='f() { todo add "$*"; todo; unset -f f; }; f'
'';
};
}