random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
868B

  1. #!/usr/bin/env fish
  2. function devrt-recreate
  3. echo "Ensure that you have committed any changes to the devrt that you need to before recreating."
  4. echo "Type 'ok' to continue, or anything else to exit."
  5. if test (read) != "ok"
  6. exit 1
  7. end
  8. rm -rf $_agw_dir_dev
  9. tar -xJf $_agw_dir_bin/dev-base.latest.tar.xz
  10. xbps-uunshare -- $_agw_dir_dev /setup.sh
  11. end
  12. function devrt-commit
  13. pushd ~
  14. set lf $_agw_dir_bin/dev-base.latest.tar.xz
  15. set nf $_agw_dir_bin/dev-base.(stat -c %Y $lf).tar.xz
  16. mv $lf $nf
  17. tar -Ipixz -cf $lf (string replace ~/ "" -- $_agw_dir_dev)
  18. popd
  19. end
  20. function devrt
  21. xbps-uunshare \
  22. -b $_agw_dir_rc:/home/marrub/rc \
  23. -b $_agw_dir_src:/home/marrub/src \
  24. -b $_agw_dir_bin:/home/marrub/bin \
  25. -b ~/vmshare:/home/marrub/vmshare \
  26. -b ~/.gem:/home/marrub/.gem \
  27. -- $_agw_dir_dev /usr/bin/env _agw_chroot=1 /usr/bin/fish -l -i -C cd
  28. end
  29. ## EOF