diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-09 12:29:46 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-09 12:29:46 +0200 |
commit | 8bdca1a45008147b28d143118e513ac4cd7dc3b0 (patch) | |
tree | a656a805ee3a828c78bc77cd2b374c48f34355cf | |
parent | vimrc: 4 spaces for tabs (diff) | |
download | laurent-tools-8bdca1a45008147b28d143118e513ac4cd7dc3b0.tar.xz laurent-tools-8bdca1a45008147b28d143118e513ac4cd7dc3b0.zip |
bashrc: add pulseaudio beep and use in in loop helpers
-rw-r--r-- | conf/bashrc-laurent-public | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public index de8d30a..63845f6 100644 --- a/conf/bashrc-laurent-public +++ b/conf/bashrc-laurent-public @@ -71,9 +71,10 @@ alias usee='vim ~/perso/USEFULL_COMMANDS' alias xbindkeys-reload="pkill xbindkeys; xbindkeys" alias tn='tmux new-session -s' alias ta='tmux attach' +alias pabeep='paplay /usr/share/sounds/gnome/default/alerts/bark.ogg' 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 } +function loop() { time=$1; shift; while :; do echo $@; eval $@; sleep $time; done; pabeep; } +function loop_false() { time=$1; shift; while :; do echo $@; eval $@ && break; sleep $time; done; pabeep; } alias pingg='ping google.com' alias pingx='ping 8.8.8.8' |