detached a998c3e

fix(bootstrap): set TERM=xterm-256color for better gum compatibility in VMs

commit
a998c3ed21025792c9f2a8d0444549d7d13aae0a
author
bnema · · 2025-10-19 09:47 UTC
parent
504e4b4
signature
unsigned
2 files · +15 -10
M README.md +9 -10
@@ -84,16 +84,17 @@ archup/
8484 ### Quick Install (from Arch ISO)
8585
8686 ```bash
87-# Download the installation script (curl is available by default on Arch ISO)
88-# Note: Using 'dev' branch for testing - change to 'main' for stable release
89-curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh -o install.sh
90-chmod +x install.sh
87+# Install from dev branch (latest)
88+curl -fsSL https://archup.bnema.dev/install/dev | bash
9189
92-# Run the installer (it will download all required files)
93-sudo ./install.sh
90+# OR install from main branch (stable - when available)
91+curl -fsSL https://archup.bnema.dev/install | bash
92+
93+# OR direct from GitHub (fallback)
94+curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh | bash
9495 ```
9596
96-**Note:** Phase 1 complete! The installer can now install a minimal bootable Arch Linux system. Ready for VM testing.
97+**Note:** The installer automatically downloads all required files and can install a minimal bootable Arch Linux system. Ready for VM testing!
9798
9899 ---
99100
@@ -119,9 +120,7 @@ To test the installer in a VM (QEMU/KVM recommended):
119120 # Connect to internet
120121
121122 # Download and run installer (automatically downloads all required files)
122-curl -L https://raw.githubusercontent.com/bnema/archup/main/install.sh -o install.sh
123-chmod +x install.sh
124-sudo ./install.sh
123+curl -fsSL https://archup.bnema.dev/install/dev | bash
125124 ```
126125
127126 **What the installer does:**
@@ -84,16 +84,17 @@ archup/
84 ### Quick Install (from Arch ISO)84 ### Quick Install (from Arch ISO)
85 85
86 ```bash86 ```bash
87-# Download the installation script (curl is available by default on Arch ISO)87+# Install from dev branch (latest)
88-# Note: Using 'dev' branch for testing - change to 'main' for stable release88+curl -fsSL https://archup.bnema.dev/install/dev | bash
89-curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh -o install.sh
90-chmod +x install.sh
91 89
92-# Run the installer (it will download all required files)90+# OR install from main branch (stable - when available)
93-sudo ./install.sh91+curl -fsSL https://archup.bnema.dev/install | bash
92+
93+# OR direct from GitHub (fallback)
94+curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh | bash
94 ```95 ```
95 96
96-**Note:** Phase 1 complete! The installer can now install a minimal bootable Arch Linux system. Ready for VM testing.97+**Note:** The installer automatically downloads all required files and can install a minimal bootable Arch Linux system. Ready for VM testing!
97 98
98 ---99 ---
99 100
@@ -119,9 +120,7 @@ To test the installer in a VM (QEMU/KVM recommended):
119 # Connect to internet120 # Connect to internet
120 121
121 # Download and run installer (automatically downloads all required files)122 # Download and run installer (automatically downloads all required files)
122-curl -L https://raw.githubusercontent.com/bnema/archup/main/install.sh -o install.sh123+curl -fsSL https://archup.bnema.dev/install/dev | bash
123-chmod +x install.sh
124-sudo ./install.sh
125 ```124 ```
126 125
127 **What the installer does:**126 **What the installer does:**
M install/bootstrap.sh +6 -0
@@ -8,6 +8,12 @@ set -e
88 echo "=== ArchUp Bootstrap ==="
99 echo "Installing essential dependencies..."
1010
11+# Fix TERM for better gum compatibility in VMs
12+if [ "$TERM" = "linux" ] || [ -z "$TERM" ]; then
13+ export TERM=xterm-256color
14+ echo "Set TERM=xterm-256color for better TUI compatibility"
15+fi
16+
1117 # Sync package database (required on fresh ISO boot)
1218 echo "Syncing package database..."
1319 pacman -Sy --noconfirm
@@ -8,6 +8,12 @@ set -e
8 echo "=== ArchUp Bootstrap ==="8 echo "=== ArchUp Bootstrap ==="
9 echo "Installing essential dependencies..."9 echo "Installing essential dependencies..."
10 10
11+# Fix TERM for better gum compatibility in VMs
12+if [ "$TERM" = "linux" ] || [ -z "$TERM" ]; then
13+ export TERM=xterm-256color
14+ echo "Set TERM=xterm-256color for better TUI compatibility"
15+fi
16+
11 # Sync package database (required on fresh ISO boot)17 # Sync package database (required on fresh ISO boot)
12 echo "Syncing package database..."18 echo "Syncing package database..."
13 pacman -Sy --noconfirm19 pacman -Sy --noconfirm

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close