Record command history

This commit is contained in:
Konstantin Nazarov 2021-09-05 18:46:51 +01:00
parent 9703310008
commit ddc8b84d0d
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

1
q
View file

@ -116,6 +116,7 @@ if [[ ! -z "$COMMAND" ]]; then
if [[ "$DRYRUN" == "1" ]]; then
"$Q_SCRIPT_DIR/$SCRIPTS" --dry-run "$COMMAND"
else
echo "$@" >> ~/.q_history
"$Q_SCRIPT_DIR/$SCRIPTS" "$COMMAND"
fi
else