diff --git a/.bash_aliases b/.bash_aliases index ca95a22..367cba1 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -106,6 +106,7 @@ alias h='history' # Misc # Get the weather. Put your location after the command alias wttr='ansiweather -u imperial -s false -l' +alias wtr='curl -s "https://wttr.in/?format=%l:+%c+%t+%w+%p"' # A quick lil speedyboi alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -' # If you're runnng my exact mastodon setup, this will be useful diff --git a/.bashrc b/.bashrc index 580f496..98cf93e 100644 --- a/.bashrc +++ b/.bashrc @@ -178,3 +178,12 @@ extract () { export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH" export CDPATH=:..:$HOME:$HOME/dock:/dock alias colors='for x in {16..231}; do printf "\e[48;5;${x}m%03d\e[0m " $x; done' +#fastfetch +printf "\n%s %s | Load: %s | Uptime: %s\n" \ + "$(hostname -s)" \ + "$(date +%H:%M)" \ + "$(cut -d' ' -f1-3 /proc/loadavg)" \ + "$(uptime -p | sed 's/up //')" +df -h . | awk 'NR==2{printf "Disk: %s free of %s\n",$4,$2}' +curl -s "https://wttr.in/?format=%l:+%c+%t+%w+%p" +echo