Skip to content

rezapace/zsh-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

⚡ zsh-config

Konfigurasi Zsh personal yang ringan, cepat, dan siap pakai

License Last Commit Stars Forks Release Shell Platform


Demo

Powered by Zinit + Powerlevel10k + fzf — terminal yang produktif dalam satu file konfigurasi.


QUICK SETUP

sudo apt update && upgrade -y
sudo apt update && sudo apt install -y curl git gh btop nano zsh build-essential ca-certificates && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm install --lts && nvm alias default 'lts/*' && echo "===== CHECK VERSION =====" && curl --version | head -n1 && git --version && gh --version | head -n1 && btop --version && zsh --version && gcc --version | head -n1 && make --version | head -n1 && node -v && npm -v && nvm --version
nano ~/.zshrc
zsh
code ~/.pi/agent/models.json

📖 About

zsh-config adalah dotfile .zshrc yang dirancang untuk developer yang ingin terminal cepat, cantik, dan fungsional tanpa setup yang rumit. Semua plugin dikelola oleh Zinit dan akan terinstall otomatis saat pertama kali dijalankan.

Cocok untuk Linux server, WSL, maupun macOS.


✨ Fitur

  • 🚀 Zinit — plugin manager modern, lazy-load otomatis
  • 🎨 Powerlevel10k — tema prompt dengan instant prompt
  • 🖍️ Syntax highlighting — warna real-time saat mengetik perintah
  • 💡 Autosuggestions — saran perintah dari histori
  • 🔍 fzf — fuzzy finder terintegrasi
  • 📁 Directory jumpz, fasd, autojump
  • 🌈 LS_COLORS — warna output ls yang kaya
  • 📜 Histori 10.000 baris — no duplicate, shared antar sesi
  • 🛠️ Custom functionsgupp, grel, mkdirg, cpg, mvg, dll
  • 🌐 Go + NVM — environment path sudah terkonfigurasi

🚀 Instalasi Cepat

1. Install dependensi sistem

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git gh btop nano zsh build-essential ca-certificates \
  && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash \
  && export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" \
  && nvm install --lts && nvm alias default 'lts/*'

2. Clone dan pasang konfigurasi

# Clone repo
git clone https://github.com/rezapace/zsh-config.git ~/zsh-config

# Backup .zshrc lama (opsional)
cp ~/.zshrc ~/.zshrc.bak

# Copy ke .zshrc
cp ~/zsh-config/.zsh ~/.zshrc

3. Jalankan Zsh

zsh

Zinit akan otomatis terinstall dan semua plugin diunduh saat pertama kali dijalankan.


🔌 Plugin

Plugin Fungsi
romkatv/powerlevel10k Tema prompt modern
zsh-users/zsh-syntax-highlighting Highlight perintah real-time
zsh-users/zsh-autosuggestions Saran dari histori
zsh-users/zsh-completions Tab completion tambahan
marlonrichert/zsh-autocomplete Autocomplete real-time
rupa/z Jump ke direktori sering dikunjungi
clvv/fasd Akses cepat file & direktori
wting/autojump Directory jumper
trapd00r/LS_COLORS Warna output ls
OMZP::git Alias git dari Oh My Zsh
OMZP::sudo Tekan Esc 2x untuk tambah sudo
OMZP::command-not-found Saran perintah yang tidak ditemukan

🏷️ Alias

Alias Perintah Keterangan
h cd ~ Ke home directory
v code . Buka VS Code di direktori saat ini
c clear Bersihkan terminal
hapus rm -rf Hapus paksa
home cd /home/reza Ke direktori home
profile code ~/.zshrc Edit .zshrc di VS Code
rprofile source ~/.zshrc Reload konfigurasi shell
ls exa / fallback ls List file dengan warna & git status
ll exa -alF / fallback ls -alF List detail + icon + git status
tree exa --tree / fallback tree Tampilan pohon direktori
mx chmod a+x Tambah permission execute
mod chmod +x ./* Execute semua file di direktori
code code-server VS Code Server

🛠️ Fungsi Custom

gupp — Git push otomatis

gupp "pesan commit"
# → git add . && git commit -m "..." && git push -u origin <branch>

grel — Buat GitHub Release otomatis

grel
# → zip ~/workspace → gh release create vX.X.X → upload

Auto-increment versi semver dari release terakhir.

mkdirg — Buat direktori lalu masuk ke dalamnya

mkdirg nama-folder

cpg — Copy file lalu pindah ke tujuan

cpg <source> <destination>
# File otomatis di-rename jika sudah ada di tujuan

mvg — Move file lalu pindah ke tujuan

mvg <source> <destination>

cpwd — Copy path direktori saat ini

cpwd          # → copy ke clipboard (xclip)
cpwd /tujuan  # → copy direktori ke path tujuan

rename — Ganti nama file

rename nama-lama nama-baru

⌨️ Keybinding

Shortcut Aksi
Ctrl + P Cari histori ke atas
Ctrl + N Cari histori ke bawah
Alt + W Hapus kata (kill-region)
Esc Esc Tambah sudo di awal perintah

🌐 Environment

Variabel Nilai
GOROOT /usr/local/go
GOPATH $HOME/go
GOPROXY https://proxy.golang.org,direct
GO111MODULE on
NVM_DIR $HOME/.nvm

📦 Dependensi Opsional

Tool Fungsi Install
exa Pengganti ls dengan icon & git apt install exa
fzf Fuzzy finder apt install fzf
fd Pengganti find untuk fzf apt install fd-find
gh GitHub CLI untuk grel apt install gh
xclip Clipboard untuk cpwd apt install xclip
btop Monitor sistem apt install btop

🤖 AI Config (opsional)

Jika menggunakan pi sebagai coding agent, edit konfigurasi model:

code ~/.pi/agent/models.json

📋 Verifikasi Instalasi

curl --version | head -n1
git --version
gh --version | head -n1
zsh --version
node -v && npm -v && nvm --version

📦 Releases

Lihat semua versi di halaman Releases.

Untuk membuat release baru dari workspace lokal, gunakan fungsi grel:

grel
# ✅ v0.1.1 released with release-20260620120000.zip

📄 Lisensi

MIT © rezapace


⭐ Jika repo ini bermanfaat, berikan bintang!

GitHub Stars

About

Konfigurasi Zsh personal — Zinit + Powerlevel10k + fzf, siap pakai dalam satu file

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages