]> git.amazingca.dev Git - autumn/dots/commitdiff
Create backup script
authorAmazingca <autumn@amazingca.dev>
Sun, 15 Mar 2026 07:29:19 +0000 (01:29 -0600)
committerAmazingca <autumn@amazingca.dev>
Sun, 15 Mar 2026 07:29:19 +0000 (01:29 -0600)
backup.nu [new file with mode: 0644]
config/nushell/config.nu

diff --git a/backup.nu b/backup.nu
new file mode 100644 (file)
index 0000000..88ba11e
--- /dev/null
+++ b/backup.nu
@@ -0,0 +1,10 @@
+cp -ur ~/.config/helix config
+cp -ur ~/.config/hypr config
+cp -ur ~/.config/ironbar config
+cp -ur ~/.config/nushell config
+cp -ur ~/.config/waybar config
+
+# Modify nushell files post-copy
+cat config/nushell/config.nu | sed "s/$env.VPN_GATEWAY = \".*\"/$env.VPN_GATEWAY = \"\"/" o> config/nushell/config.nu
+rm config/nushell/env.nu
+rm config/nushell/history.txt
index 6b6aab5172cbbed01269bed97a634e1b774bafae..ecda969ba29c0184a65ad43a3890fb6cf005a9e6 100644 (file)
@@ -33,7 +33,7 @@ $env.PROMPT_COMMAND = { $"[(pwd | path basename)@(sys host | get hostname)]" }
 
 $env.config.table.mode = "psql"
 
-$env.VPN_GATEWAY = ""
+$env.VPN_GATEWAY = "gateway.colostate.edu"
 
 def gp [] { sudo gpclient --fix-openssl connect $env.VPN_GATEWAY }
 def virt [] { sudo /usr/bin/modprobe v4l2loopback exclusive_caps=1 card_label=OBS Virtual Camera }