#!/usr/bin/env fish set keyfile $HOME/.bupstash/backups.key if not test -f $keyfile echo Loading key from pass... pass bupstash | tail -n+3 > $keyfile; or begin; echo Failed to load key from pass exit 1 end end set rift ssh://rift/storage/daniel-backups bupstash init --repository $rift