dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

rsync.rc (338B)


      1 fn rsync {
      2 	if(which openrsync >/dev/null >[2=1]) {
      3 		rsync=openrsync
      4 	}
      5 	if(~ $#rsync 0 && which rsync >/dev/null >[2=1]) {
      6 		rsync=rsync
      7 	}
      8 
      9 	switch($rsync) {
     10 	case openrsync
     11 		`{which openrsync} --rsync-path=`{which openrsync} $*
     12 	case rsync
     13 		`{which rsync} -C --include=.git $*
     14 	case *
     15 		echo 'rsync: No such file or directory'
     16 	}
     17 }