From 24163b1d5584bb672d66770fadcb1ba0d6fc957c Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sat, 18 May 2019 22:14:02 +0200 Subject: [PATCH] notes --- bashrc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bashrc.sh b/bashrc.sh index a768878..1a6acdb 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -39,6 +39,14 @@ preexec() { #__RESH_GIT_TOPLEVEL="$(git rev-parse --show-toplevel)" #__RESH_GIT_TOPLEVEL_EXIT_CODE=$? + # TODO: we should evaluate symlinks in preexec + # -> maybe create resh-precollect that could handle most of preexec + # maybe even move resh-collect here and send data to daemon and + # send rest of the data ($?, timeAfter) to daemon in precmd + # daemon will combine the data and save the record + # and save the unfinnished record even if it never finishes + # detect if the command died with the parent ps and save it then + # time __RESH_TZ_BEFORE=$(date +%:z) __RESH_RT_BEFORE="$EPOCHREALTIME" @@ -47,7 +55,6 @@ preexec() { precmd() { __RESH_EXIT_CODE=$? __RESH_RT_AFTER=$EPOCHREALTIME - __RESH_SECS_UTC_AFTER=$(date +%s -u) __RESH_TZ_AFTER=$(date +%:z) if [ ! -z ${__RESH_COLLECT+x} ]; then resh-collect -cmdLine "$__RESH_CMDLINE" -exitCode "$__RESH_EXIT_CODE" \