Installation
Requirements
- Linux (x86_64 or aarch64), as on 42 clusters.
- Python 3.11 or newer (
python3 --version). - git, for syncing your setup between machines.
No root access is needed for anything.
Install
git clone https://github.com/siglag/42space ~/42space
cd ~/42space
./install.sh
install.sh builds a single-file app (about 100 KB), copies it to
~/.local/share/42space/app/ and puts a launcher at ~/.local/bin/42space. It
does not edit your shell rc files. Running it again upgrades 42space in
place.
Shell integration
42space migrate
migrate shows a diff, then adds a single marked block to ~/.zshrc and
~/.bashrc that sources 42space's init script. Backups go to
~/.local/state/42space/backups. It also cleans up leftovers from 42space v1
if it finds any.
Open a new terminal. On a new or out-of-date machine, 42space now restores your tools in the background and prints a one-line notice when done.
42space shell install and 42space shell uninstall add or remove the rc
block without the migration step. 42space shell status shows where it is
installed.
Check the setup
42space doctor
doctor checks goinfre, the manifest, the launcher, the rc files, PATH
conflicts, HOME usage, the VS Code CLI and unpushed changes, and says what to
do about each problem.
Uninstall
42space disable # remove the rc block; tools and settings stay
rm -rf ~/.local/share/42space ~/.local/bin/42space
rm -rf /goinfre/$USER/42space # installed tools on this machine
rm -rf ~/.config/42space # your setup (push it first if you want to keep it)