Added stopwatch function to bashrc

This commit is contained in:
jon
2022-06-23 08:18:43 -05:00
parent 9da567f19f
commit 3cea4a857b

View File

@@ -106,6 +106,11 @@ if [ -f /usr/share/fzf/shell/key-bindings.bash ]; then
source /usr/share/fzf/shell/key-bindings.bash source /usr/share/fzf/shell/key-bindings.bash
fi fi
#this is a stopwatch function, call with: $ stopwatch
stopwatch () {
date1=`date +%s`; while true; do echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; done
}
n () n ()
{ {
# Block nesting of nnn in subshells # Block nesting of nnn in subshells