Closed graywh closed 12 years ago
Hey @graywh
I don't see \$?
showing the previous command in my bash prompt. This link that uses echo !!
(or a variant that leads with the !
syntax) seems to work better.
Thoughts on implementing?
That's previous command, not its exit status.
Sorry for the misunderstanding. I've pushed exit_status in the latest commit. Thanks @graywh. The layout in box #1 is pretty unorganized, but functional
Is there a reason you used a function? You can use \$?
just like \$(show_exit_status)
.
Updated without function. Good call
There's not an escape code for it like the others, but
\$?
works fine in a "-quoted string.