• Operand
  • # (b)ring mi - belles.

gram:build

> ./config/nushell/share.nu

Lenses
(coming soon!)


def reshare [node: string] { cd $node; nsh miniserve miniserve }

def share [nodes: list<path>, place: string] {
  print "Sharing:"
  $nodes | each {|node| print $"  ($node) -> ($grams.share.domain)/($place)/(basename $node)" }
  shell $grams.share.machine $"mkdir 'share/($place)'"
  time rsync -av ...($nodes | path expand) $"(machine address $grams.share.machine):~/share/($place)/" }