function alert --description 'Report status of command to desktop' if test $status -eq 0 notify "✅ Done" (history | head -n1) else notify "❌ Failed" (history | head -n1) end end