Skip to content

Instantly share code, notes, and snippets.

@gak
Last active December 18, 2015 07:29
Show Gist options
  • Save gak/5746937 to your computer and use it in GitHub Desktop.
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/
# 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