Skip to content

Commit

Permalink
Add command being run to history
Browse files Browse the repository at this point in the history
Suggested by @QiangF in #11.
  • Loading branch information
lucaswerkmeister committed Nov 24, 2016
1 parent 2e463d3 commit 81db9bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cheats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function __run_cheat {
local ${__line%%:*}="$__input";
done
__print_separator_line;
history -s "$__command";
eval "$__command";
}

Expand Down

0 comments on commit 81db9bc

Please sign in to comment.