comparison .bash_aliases @ 113:56c2ff1a8427

mc-backup function
author Steve Huston <huston@srhuston.net>
date Thu, 03 Jul 2014 22:49:34 -0400
parents 7da995f48c91
children 326476a80387
comparison
equal deleted inserted replaced
112:8ebac40a40be 113:56c2ff1a8427
155 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog" 155 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog"
156 alias slurp="wget -r -l1 -np -nd -A.mp3" 156 alias slurp="wget -r -l1 -np -nd -A.mp3"
157 157
158 # Other Functions 158 # Other Functions
159 159
160 mc-backup() {
161 pushd ~/Dropbox/Saves/minecraft/saves;
162 if [ -d $1 ]; then
163 tar cvf - $1 | bzip2 > ../$1_`date +%Y%m%d%H%M%S`.tar.bz2;
164 fi;
165 popd
166 }
167
160 tock() { 168 tock() {
161 while true ; do 169 while true ; do
162 if [ `date +%S` -gt 42 ] ; then 170 if [ `date +%S` -gt 42 ] ; then
163 if [ `date +%S` -lt 47 ] ; then 171 if [ `date +%S` -lt 47 ] ; then
164 afplay /System/Library/Sounds/Pop.aiff & 172 afplay /System/Library/Sounds/Pop.aiff &