Skip to content
Browse files Add failed commands to shell history.

It's nice to be able to just hit the up arrow to try the command again,
especially in the case when cryptsetup fails due to invalid password
entry, and you'd like a quick extra chance at entering your 93 character
long military grade password.

Signed-off-by: Piotr Karbowski <>
  • Loading branch information...
1 parent 853f838 commit ddb1076700e6317a29998170d546ea3a95bc8430 @zx2c4 zx2c4 committed with Piotr Karbowski
Showing with 1 addition and 0 deletions.
  1. +1 −0 sourceroot/
1 sourceroot/
@@ -37,6 +37,7 @@ run() {
eerror "'$@' failed."
echo "Failed: '$@'" >> /init.log
+ echo "$@" >> /.ash_history

0 comments on commit ddb1076

Please sign in to comment.
Something went wrong with that request. Please try again.