diff options
Diffstat (limited to 'misc/.bashrc')
| -rw-r--r-- | misc/.bashrc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/misc/.bashrc b/misc/.bashrc index 2d44565..e000c79 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -140,7 +140,6 @@ alias which='alias | which -i' alias chx="chmod +x" # dedicated emacs instances for emms and erc, see `my-profile' in my # emacs init files -alias emms='EMACS_PROFILE=emms emacs' alias erc='EMACS_PROFILE=erc emacs' # Safer default for cp, mv, rm. These will print a verbose output of @@ -149,7 +148,9 @@ alias erc='EMACS_PROFILE=erc emacs' # generally safer option. alias cp='cp -iv' alias mv='mv -iv' -alias rm='rm -iv' +if [ -z "$EMACS_BASH_COMPLETE" ]; then + alias rm='rm -iv' +fi # git alias gcgrep='git log --pretty=format:"%h %ad - %an: %<(80,trunc)%s" | grep' @@ -283,5 +284,17 @@ gs-merge() { gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@" } +chime() { + local rc=$? + if [ $rc -eq 0 ]; then + # success jingle + play -V1 -q -n synth 0.12 pluck C5 : synth 0.12 pluck E5 : synth 0.12 pluck G5 : synth 0.45 pluck C6 + else + # failure jingle + play -V1 -q -n synth 0.12 pluck C4 : synth 0.12 pluck G3 : synth 0.12 pluck Eb3 : synth 0.45 pluck C3 + fi + return $rc +} + # dptrp1 alias quaderno="dptrp1 --addr $QUADERNO_IP" |
