Files
temp-own/README.md
T

61 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# temp-own
Installer sekali jalan untuk terminal dev environment: **fish + starship (polos) + yazi + micro + lazydocker**.
- **Auto-deteksi distro** (pacman / apt / dnf / zypper / apk) — pakai paket distro bila ada, kalau tidak ambil dari sumber resmi.
- **fish jadi default shell global** + config global di `/etc/fish/conf.d/`.
- **Yazi** disetel **default editor = micro** (bukan vim).
- Hanya butuh **sudo**. Idempotent (aman diulang).
## Instal (satu perintah)
```sh
curl -fsSL https://gitea.oxpoe.qzz.io/oxpoe/temp-own/raw/branch/main/install.sh | sudo bash
```
Raw URL: `https://gitea.oxpoe.qzz.io/oxpoe/temp-own/raw/branch/main/install.sh`
## Yang dipasang
| Tool | Sumber |
|---|---|
| fish | repo distro |
| starship | repo distro / [starship.rs/install.sh](https://starship.rs/install.sh) |
| yazi | repo distro / release GitHub `sxyazi/yazi` |
| micro | repo distro / [getmic.ro](https://getmic.ro) |
| lazydocker | repo distro / script resmi `jesseduffield/lazydocker` |
Yang tak tersedia di repo distro dipasang ke `/usr/local/bin`.
## Yang diubah di sistem
- `/etc/shells` → menambah path `fish`.
- `/etc/fish/conf.d/temp-own.fish` → config fish **untuk semua user**:
- `EDITOR`/`VISUAL=micro`
- `starship init fish` (prompt default/polos)
- default shell user (SUDO_USER) & `root` → fish (`chsh`).
- `~/.config/yazi/yazi.toml` (user + root) → opener `edit` = `micro` (file lama di-backup `.bak-<ts>`).
## Setelah install
Logout–login (atau buka terminal baru) agar shell fish aktif. Cek:
```sh
echo $SHELL
starship --version
yazi --version
micro --version
lazydocker --version
```
## Catatan
- `chsh` untuk user lain (uid ≥ 1000) bisa manual:
`sudo chsh -s "$(command -v fish)" <user>`
- Untuk menghapus: balikkan shell ke bash (`sudo chsh -s /bin/bash <user>`),
hapus `/etc/fish/conf.d/temp-own.fish`, dan `~/.config/yazi/yazi.toml` bila perlu.
## Lisensi
MIT