google / taqo-paco

Desktop and new mobile client apps for the Paco user behavior research platform (https://www.pacoapp.com/).
Apache License 2.0
12 stars 10 forks source link

Cleanly remove shell loggers when study is over #193

Open BobEvans opened 12 months ago

BobEvans commented 12 months ago

When a study with shell tracing is stopped, do a clean removal of the functions without requiring users to restart their shells, if possible.

For fish shell, run the fish command: functions -e taqo_prehook taqo_posthook

For bash and zsh, remove preexec_log_cmd from $preexec_functions and precmd_log_status from $precmd_functions? Or remove those arrays altogether if there are no other functions in them.