From: Amazingca Date: Sun, 15 Mar 2026 07:29:19 +0000 (-0600) Subject: Create backup script X-Git-Url: http://git.amazingca.dev/?a=commitdiff_plain;h=7125876ce05ffcb8ae8326af6746fb3868aa08ab;p=autumn%2Fdots Create backup script --- diff --git a/backup.nu b/backup.nu new file mode 100644 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 diff --git a/config/nushell/config.nu b/config/nushell/config.nu index 6b6aab5..ecda969 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -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 }