Skip to content

Instantly share code, notes, and snippets.

@hannestyden
Created November 22, 2016 13:58
Show Gist options
  • Save hannestyden/3734d77c0ea8c6fd48c0249cc1fb9255 to your computer and use it in GitHub Desktop.
Save hannestyden/3734d77c0ea8c6fd48c0249cc1fb9255 to your computer and use it in GitHub Desktop.
lprompt() {
r=$?
[ $r -eq 0 ] && echo "?" || echo "!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment