Added stopwatch function to bashrc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user