diff --git a/bash/.bashrc b/bash/.bashrc index 56a6e3e..c635a7b 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -106,6 +106,11 @@ if [ -f /usr/share/fzf/shell/key-bindings.bash ]; then source /usr/share/fzf/shell/key-bindings.bash 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 () { # Block nesting of nnn in subshells