Files
temp-own/README.md
T

73 lines
2.5 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** (shell default) + **starship** (polos) + **yazi** (+ plugin & metadata media) +
**micro** (editor) + **lazydocker** + **fastfetch** (greeting) + **mediainfo** + **ouch** (arsip).
- **Auto-deteksi distro** (pacman / apt / dnf / zypper / apk) — pakai paket distro bila ada, kalau tidak ambil dari sumber resmi.
- **fish jadi default shell** + config global di `/etc/fish/conf.d/`.
- **Yazi**: editor default **micro**, pratinjau **metadata media** (mediainfo), pratinjau & ekstrak **arsip** (ouch), plus keybind `fg` / `zoxide` / `chmod`.
- 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
```
## Yang dipasang
| Tool | Fungsi | Sumber |
|---|---|---|
| fish | shell | repo distro |
| starship | prompt (polos) | repo distro / starship.rs |
| yazi | file manager | repo distro / release GitHub |
| micro | editor | repo distro / getmic.ro |
| lazydocker | TUI Docker | repo distro / script resmi |
| fastfetch | greeting | repo distro |
| mediainfo | metadata media (yazi) | repo distro |
| ouch | arsip zip/tar/7z/… (yazi) | repo distro / release GitHub |
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 **semua user**:
`EDITOR`/`VISUAL=micro`, `starship init fish`, dan **greeting `fastfetch`**.
- default shell user (SUDO_USER) & `root` → fish (`chsh`).
- `~/.config/yazi/` (user + root) → `yazi.toml` (editor micro, previewer mediainfo/ouch, ekstrak ouch), `keymap.toml`, `init.lua` — file lama di-backup `.bak-<ts>`.
- Plugin Yazi: `full-border`, `smart-filter`, `chmod`, `ouch`, `mediainfo`, `fg`.
## Keybind Yazi
| Tombol | Fungsi |
|---|---|
| `C` | kompres (ouch) |
| `Enter` pada arsip | ekstrak (ouch) |
| `f` `g` / `f` `G` / `f` `f` | cari isi (fuzzy/ripgrep) / cari nama |
| `Z` | lompat direktori (zoxide) |
| `c` `h` | chmod |
## Setelah install
Logout–login (atau buka terminal baru) agar shell fish aktif. Cek:
```sh
echo $SHELL
starship --version; yazi --version; micro --version
lazydocker --version; fastfetch --version; mediainfo --version; ouch --version
```
## Catatan
- `chsh` untuk user lain (uid ≥ 1000) bisa manual:
`sudo chsh -s "$(command -v fish)" <user>`
- Untuk menghapus: balikkan shell ke bash, hapus `/etc/fish/conf.d/temp-own.fish`,
dan `~/.config/yazi/` bila perlu.
## Lisensi
MIT