summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2021-11-24 02:02:25 -0500
committerseth <[email protected]>2022-08-04 04:40:17 -0400
commit944b6db89ae715d93d0804a6a2358dcab88f1c07 (patch)
tree5244d9f5ddf4f8a661e17c184fbadf2e553dbd43 /.local/bin
initial bare repo commit
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/gamemount3
-rwxr-xr-x.local/bin/makechrootbld19
-rwxr-xr-x.local/bin/mirrorupdate3
-rwxr-xr-x.local/bin/update-repos7
4 files changed, 32 insertions, 0 deletions
diff --git a/.local/bin/gamemount b/.local/bin/gamemount
new file mode 100755
index 0000000..4a45539
--- /dev/null
+++ b/.local/bin/gamemount
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo mount -o "uid=1000,gid=1000,rw,user,exec,umask=000 0 0" /dev/sdc2 /mnt
diff --git a/.local/bin/makechrootbld b/.local/bin/makechrootbld
new file mode 100755
index 0000000..c1d1ae6
--- /dev/null
+++ b/.local/bin/makechrootbld
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+echo "creating arch chroot..."
+CHROOT=$(pwd)/chroot
+mkdir $CHROOT
+mkarchroot $CHROOT/root base-devel
+
+echo "upgrading chroot..."
+arch-nspawn $CHROOT/root pacman -Syu
+
+echo "building package..."
+makechrootpkg -c -u -T -r $CHROOT
+
+echo "removing chroot"
+sudo rm -rf $CHROOT
+
+echo "installing package"
+sudo pacman -U *.pkg*
+echo "DONE !"
diff --git a/.local/bin/mirrorupdate b/.local/bin/mirrorupdate
new file mode 100755
index 0000000..0f0d199
--- /dev/null
+++ b/.local/bin/mirrorupdate
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo reflector --country US --protocol https --latest 20 --sort rate -n 5 --save /etc/pacman.d/mirrorlist
diff --git a/.local/bin/update-repos b/.local/bin/update-repos
new file mode 100755
index 0000000..cfa5810
--- /dev/null
+++ b/.local/bin/update-repos
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+## run this in a directory full of git repos (i usually keep them in ~)
+for dir in *
+do
+ cd "$dir" && git pull | sed s/Already/"$dir"\ is\ already/; cd ..
+done