mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Disable rprompt + command duration for bash (bc required)
This commit is contained in:
parent
a241377632
commit
5477e0ebbb
2 changed files with 13 additions and 13 deletions
12
bash/rc
12
bash/rc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue