Disable rprompt + command duration for bash (bc required)

This commit is contained in:
Loic Nageleisen 2024-02-12 19:02:57 +01:00
parent a241377632
commit 5477e0ebbb
Signed by: lloeki
GPG key ID: D05DAEE6889F94C2
2 changed files with 13 additions and 13 deletions

12
bash/rc
View file

@ -21,12 +21,12 @@ GIT_PS1_SHOWUNTRACKEDFILES=1
precmd() {
CMD_RC=$?
if [[ -n ${CMD_START} ]]; then
CMD_END="${EPOCHREALTIME}"
CMD_DURATION=$(bc <<<"${CMD_END} - ${CMD_START}")
unset CMD_START
unset CMD_END
fi
# if [[ -n ${CMD_START} ]]; then
# CMD_END="${EPOCHREALTIME}"
# CMD_DURATION=$(bc <<<"${CMD_END} - ${CMD_START}")
# unset CMD_START
# unset CMD_END
# fi
_direnv_hook
#clear_incomplete_line