๐ ๐ฌ๐ง English | ๐ฎ๐ฉ Bahasa Indonesia
A highly optimized .bashrc configuration for Linux developers and power users (primarily Arch Linux). It delivers a modern terminal interface, built-in productivity tools, startup optimizations, and seamless integration with popular CLI utilities.
- Modern Prompt: Auto-integrates with Starship Prompt.
- Line Editor: Full support for Ble.sh (syntax highlighting, auto-suggestions, vi/emacs keybindings).
- Modern Listing & Viewing:
ls/llaliased toeza(icons, Git status, colors),cataliased tobat. - Colored Man Pages: Custom
LESS_TERMCAPvariables for clean, highlightedman/lessoutput.
- Package Aliases:
update,update-full,install,remove,search,cleanup,orphans(usingyay/pacman). - Auto-Suggest Missing Commands:
command_not_found_handledetects missing packages viapkgfileand suggests installation commands. - Quick System Info:
cpu,gpu,disks,kernel,uptime,myip,ports,ps.
- Smart Fixer (
fix): Corrects common typos (cd..โcd ..), auto-addssudo, or convertsaptโpacman. - Directory Bookmarks (
bm,gm): Save & jump to favorite directories instantly. - Todo Manager (
todo): Simple CLI task manager with checklist ([ ]/[x]), supports bash-completion. - Notes System (
note): Create, edit, list, and delete centralized Markdown notes. - Archive Manager (
extract/compress): Extract/compress 15+ formats (tar,zip,7z,zst,deb,rpm, etc.) with one command. - Git Aliases:
ga,gc,gco,gcb,gl,gp,gundo, etc. +quickpushfor instant add-commit-push. - Daily Utilities:
calc,jsonf,genpass,tmpd,backup,weather(default: Banjarmasin),pskill,fsearch,ff.
- Lazy Loading Docker:
docker,dc,dexload only on first use, drastically reducing shell startup time. - Advanced Shell Options:
autocd,cdspell,globstar,nullglob,extglob,noclobber,nocasematch, etc. - Smart History: Timestamped, deduplicated, ignores common commands (
ls,cd,clear, etc.), append mode.
- FZF Integration: Uncomment the block to enable fuzzy search (
fh,vf,fcd,fkill). - Custom Keybindings:
Ctrl+Left/Rightword navigation & history search (auto-adapts to Ble.sh or standard Bash).
Install recommended packages (Arch Linux):
yay -S ble.sh eza bat starship fastfetch jq bc pkgfile fd fzf(Note: fzf, fd, and docker are optional. The script runs normally without them.)
- Backup old config:
cp ~/.bashrc ~/.bashrc.backup
- Apply this config: Replace your
~/.bashrcwith this script. - Reload:
source ~/.bashrc
| Command | Description |
|---|---|
fix |
Auto-fix last command typos or add missing sudo |
bm <name> / gm <name> |
Save / jump to a directory bookmark |
todo add <task> |
Add a new task |
todo list |
Show tasks with checkboxes |
note list / note <name> |
List notes or create/edit a new note |
extract file.7z |
Auto-extract archive by extension |
compress folder |
Compress folder to tar.gz (default) |
quickpush "msg" |
Git add + commit + push in one line |
myip |
Show public & local IPv4 |
weather [city] |
Check weather (default: Banjarmasin) |
genpass [len] |
Generate random password (default: 24 chars) |
- Change Default City: Edit
local location="${1:-Banjarmasin}"in theweather()function. - Enable FZF: Uncomment the
# FZF Integrationblock. Ensurefzf&fdare installed. - Change Editor: Modify
export EDITOR="nano"in the Environment section. - Disable Welcome Screen: Comment out
show_greetingat the end of the file.
| Path | Purpose |
|---|---|
~/.local/share/bash_bookmarks |
Directory bookmarks (name:path) |
~/.local/share/notes/ |
Markdown notes storage |
~/.local/share/todo.txt |
Todo list file |
โ ๏ธ Note: Optimized for Arch Linux. Adapt package aliases (yay/pacman) for other distros.ble.sh&starshipare optional and auto-detected.
Konfigurasi .bashrc yang sangat dioptimalkan untuk pengembang dan pengguna Linux tingkat lanjut (khususnya Arch Linux). Menyediakan antarmuka terminal modern, alat produktivitas bawaan, optimasi kecepatan startup, dan integrasi mulus dengan utilitas CLI populer.
- Prompt Modern: Integrasi otomatis dengan Starship Prompt.
- Line Editor: Dukungan penuh untuk Ble.sh (syntax highlighting, auto-suggestions, keybinding vi/emacs).
- Listing & View Modern: Alias
ls/llmenggunakaneza(ikon, status Git, warna),catmenggunakanbat. - Man Pages Berwarna: Variabel
LESS_TERMCAPkustom untuk outputman/lessyang rapi dan berwarna.
- Alias Paket:
update,update-full,install,remove,search,cleanup,orphans(menggunakanyay/pacman). - Saran Otomatis:
command_not_found_handlemendeteksi paket yang hilang viapkgfiledan menyarankan perintah instalasi. - Info Sistem Cepat:
cpu,gpu,disks,kernel,uptime,myip,ports,ps.
- Perbaikan Cerdas (
fix): Memperbaiki typo umum (cd..โcd ..), otomatis menambahsudo, atau mengonversiaptโpacman. - Bookmark Direktori (
bm,gm): Simpan & panggil direktori favorit secara instan. - Manajer Todo (
todo): Task manager CLI sederhana dengan checklist ([ ]/[x]), dilengkapi bash-completion. - Sistem Catatan (
note): Buat, edit, daftar, & hapus catatan Markdown terpusat. - Manajer Arsip (
extract/compress): Ekstrak/kompres 15+ format (tar,zip,7z,zst,deb,rpm, dll.) dalam satu perintah. - Alias Git Lengkap:
ga,gc,gco,gcb,gl,gp,gundo, dll. +quickpushuntuk add-commit-push instan. - Utilitas Harian:
calc,jsonf,genpass,tmpd,backup,weather(default: Banjarmasin),pskill,fsearch,ff.
- Lazy Loading Docker:
docker,dc,dexhanya dimuat saat pertama kali dipanggil, mempercepat startup terminal secara signifikan. - Opsi Shell Lanjutan:
autocd,cdspell,globstar,nullglob,extglob,noclobber,nocasematch, dll. - History Cerdas: Format waktu, deduplikasi, mengabaikan perintah umum (
ls,cd,clear, dll.), mode append.
- Integrasi FZF: Hapus tanda
#di blok# FZF Integrationuntuk mengaktifkan pencarian fuzzy (fh,vf,fcd,fkill). - Keybinding Kustom: Navigasi kata
Ctrl+Kiri/Kanan& pencarian history (otomatis menyesuaikan Ble.sh atau Bash standar).
Instal paket yang direkomendasikan (Arch Linux):
yay -S ble.sh eza bat starship fastfetch jq bc pkgfile fd fzf(Catatan: fzf, fd, dan docker bersifat opsional. Skrip tetap berfungsi normal tanpa paket ini.)
- Backup konfigurasi lama:
cp ~/.bashrc ~/.bashrc.backup
- Terapkan konfigurasi ini: Ganti isi
~/.bashrcAnda dengan skrip ini. - Muat ulang:
source ~/.bashrc
| Perintah | Deskripsi |
|---|---|
fix |
Perbaiki typo perintah terakhir atau tambahkan sudo yang hilang |
bm <nama> / gm <nama> |
Simpan / lompat ke bookmark direktori |
todo add <tugas> |
Tambah tugas baru |
todo list |
Tampilkan tugas dengan checkbox |
note list / note <nama> |
Lihat daftar catatan atau buat/edit catatan baru |
extract file.7z |
Ekstrak arsip otomatis sesuai ekstensi |
compress folder |
Kompres folder menjadi tar.gz (default) |
quickpush "pesan" |
Git add + commit + push dalam satu baris |
myip |
Tampilkan IP publik & lokal IPv4 |
weather [kota] |
Cek cuaca (default: Banjarmasin) |
genpass [panjang] |
Generate password acak (default: 24 karakter) |
- Ganti Kota Default Cuaca: Edit
local location="${1:-Banjarmasin}"pada fungsiweather(). - Aktifkan FZF: Hapus tanda
#di blok# FZF Integration. Pastikanfzf&fdterinstal. - Ganti Editor Default: Ubah
export EDITOR="nano"di bagian Environment. - Nonaktifkan Sapaan Awal: Beri komentar pada baris
show_greetingdi akhir file.
| Path | Kegunaan |
|---|---|
~/.local/share/bash_bookmarks |
Database bookmark direktori (nama:path) |
~/.local/share/notes/ |
Folder penyimpanan catatan .md |
~/.local/share/todo.txt |
File daftar tugas |
โ ๏ธ Catatan: Dioptimalkan untuk Arch Linux. Sesuaikan alias paket (yay/pacman) untuk distro lain.ble.sh&starshipbersifat opsional dan akan terdeteksi otomatis.
๐ก **Cara Pakai**:
Simpan kode di atas sebagai `README.md`. Struktur ini mengikuti standar repositori open-source multilingual. Navigasi di atas akan langsung mengarah ke bagian bahasa yang dipilih, dan semua tabel, blok kode, serta tautan sudah diformat rapi untuk GitHub/GitLab/Codeberg.