diff options
Diffstat (limited to 'conf/bashrc-laurent-public')
-rw-r--r-- | conf/bashrc-laurent-public | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public index 1196490..de8d30a 100644 --- a/conf/bashrc-laurent-public +++ b/conf/bashrc-laurent-public @@ -72,6 +72,8 @@ alias xbindkeys-reload="pkill xbindkeys; xbindkeys" alias tn='tmux new-session -s' alias ta='tmux attach' function now() { while read line; do echo -e "`date ${1:++"$1"}` $line"; done } +function loop() { time=$1; shift; while :; do echo $@; eval $@; sleep $time; done } +function loop_false() { time=$1; shift; while :; do echo $@; eval $@ && break; sleep $time; done } alias pingg='ping google.com' alias pingx='ping 8.8.8.8' |