Skip to content

Instantly share code, notes, and snippets.

View maxi0604's full-sized avatar

Maximilian maxi0604

  • 03:48 (UTC +01:00)
View GitHub Profile
#!/bin/sh
TMPDIR="$(mktemp -d)"
wget https://github.com/peterhaneve/ONIMods/releases/download/FastTrackBeta/FastTrack.zip -O "$TMPDIR/FastTrack.zip" || exit 1
unzip "$TMPDIR/FastTrack.zip" -d "$TMPDIR" || exit 1
# For Steam on Linux via package manager
GAME_MOD_PATH="$HOME/.config/unity3d/Klei/Oxygen Not Included/mods/Local/FastTrack"
# For Steam on Linux via Flatpak
# GAME_MOD_PATH="$HOME/.var/app/com.valvesoftware.Steam/config/unity3d/Klei/Oxygen Not Included/mods/Local/FastTrack"
mkdir -p "$GAME_MOD_PATH" || exit 1
@maxi0604
maxi0604 / xdgbasedir.sh
Created December 3, 2023 20:38
Put this in /etc/profile.d to clean up your home directory a bit. I may add more of these as I discover them. Some of these may imply changes in other places like .zshrc / .bashrc ...
# Go
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export GOMODCACHE="${XDG_CACHE_HOME:-$HOME/.cache}/go/mod"
# Rust (Cargo)
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
# OCaml (Opam)
export OPAMROOT="${XDG_DATA_HOME:-$HOME/.local/share}/opam"