Last active
December 18, 2015 07:29
-
-
Save gak/5746937 to your computer and use it in GitHub Desktop.
My custom fish prompt code explained at http://geraldkaszuba.com/tweaking-fish-shell/
This file contains hidden or 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
# Show loadavg when too high | |
set -l load1m (uptime | grep -o '[0-9]\+\.[0-9]\+' | head -n1) | |
set -l load1m_test (math $load1m \* 100 / 1) | |
if test $load1m_test -gt 100 | |
error load $load1m | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment