Skip to content

Instantly share code, notes, and snippets.

@heypoom
Last active October 2, 2019 02:28
Show Gist options
  • Save heypoom/e2411348ebe93252c2845b9aebac448b to your computer and use it in GitHub Desktop.
Save heypoom/e2411348ebe93252c2845b9aebac448b to your computer and use it in GitHub Desktop.
for cmd in (bash -c 'compgen -c | sort')
set result (timeout 1s tldr $cmd 2>&1 || echo no)
if [ (echo $result | string match -r 'Submit new pages') ]
echo "$cmd is available for PR submission"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment