Click to refresh.
A Pen by satchmorun on CodePen.
Click to refresh.
A Pen by satchmorun on CodePen.
| ### Notify on long command completion | |
| # If commands runs >= 10 seconds, notify user on completion | |
| if test $CMD_DURATION | |
| if test $CMD_DURATION -gt (math "1000 * 3") | |
| set secs (math "$CMD_DURATION / 1000") | |
| notify-send "$history[1]" "Returned $status, took $secs seconds" | |
| end | |
| end |
| Installing Arch: | |
| sudo vim /etc/pacman.conf | |
| Update packages list: sudo pacman -Syy | |
| run sudo pacman -Syu before installing any software (to update the repositories first) | |
| * Timing issue: | |
| - Change hardware clock to use UTC time: | |
| sudo timedatectl set-local-rtc 0 |