Skip to content

flessan/MyCom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

+_= MyComLutr - Modern & Productive Terminal Configuration

๐ŸŒ ๐Ÿ‡ฌ๐Ÿ‡ง English | ๐Ÿ‡ฎ๐Ÿ‡ฉ Bahasa Indonesia


๐Ÿ‡ฌ๐Ÿ‡ง English

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.

โœจ Key Features

๐ŸŽจ UI & Prompt

  • 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/ll aliased to eza (icons, Git status, colors), cat aliased to bat.
  • Colored Man Pages: Custom LESS_TERMCAP variables for clean, highlighted man/less output.

๐Ÿ“ฆ Package & System Management (Arch Linux)

  • Package Aliases: update, update-full, install, remove, search, cleanup, orphans (using yay/pacman).
  • Auto-Suggest Missing Commands: command_not_found_handle detects missing packages via pkgfile and suggests installation commands.
  • Quick System Info: cpu, gpu, disks, kernel, uptime, myip, ports, ps.

๐Ÿ› ๏ธ Productivity & Custom Functions

  • Smart Fixer (fix): Corrects common typos (cd.. โ†’ cd ..), auto-adds sudo, or converts apt โ†’ 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. + quickpush for instant add-commit-push.
  • Daily Utilities: calc, jsonf, genpass, tmpd, backup, weather (default: Banjarmasin), pskill, fsearch, ff.

โšก Performance & Optimizations

  • Lazy Loading Docker: docker, dc, dex load 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.

๐Ÿ”Œ Extensions & Customization (Ready-to-Enable)

  • FZF Integration: Uncomment the block to enable fuzzy search (fh, vf, fcd, fkill).
  • Custom Keybindings: Ctrl+Left/Right word navigation & history search (auto-adapts to Ble.sh or standard Bash).

๐Ÿ“ฆ Prerequisites

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.)

๐Ÿš€ Installation

  1. Backup old config:
    cp ~/.bashrc ~/.bashrc.backup
  2. Apply this config: Replace your ~/.bashrc with this script.
  3. Reload:
    source ~/.bashrc

๐Ÿ“– Quick Usage Guide

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)

โš™๏ธ Customization

  • Change Default City: Edit local location="${1:-Banjarmasin}" in the weather() function.
  • Enable FZF: Uncomment the # FZF Integration block. Ensure fzf & fd are installed.
  • Change Editor: Modify export EDITOR="nano" in the Environment section.
  • Disable Welcome Screen: Comment out show_greeting at the end of the file.

๐Ÿ“ Data Storage Paths

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 & starship are optional and auto-detected.


๐Ÿ‡ฎ๐Ÿ‡ฉ Bahasa Indonesia

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.

โœจ Fitur Utama

๐ŸŽจ Tampilan & Prompt

  • 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/ll menggunakan eza (ikon, status Git, warna), cat menggunakan bat.
  • Man Pages Berwarna: Variabel LESS_TERMCAP kustom untuk output man/less yang rapi dan berwarna.

๐Ÿ“ฆ Manajemen Paket & Sistem (Arch Linux)

  • Alias Paket: update, update-full, install, remove, search, cleanup, orphans (menggunakan yay/pacman).
  • Saran Otomatis: command_not_found_handle mendeteksi paket yang hilang via pkgfile dan menyarankan perintah instalasi.
  • Info Sistem Cepat: cpu, gpu, disks, kernel, uptime, myip, ports, ps.

๐Ÿ› ๏ธ Produktivitas & Fungsi Kustom

  • Perbaikan Cerdas (fix): Memperbaiki typo umum (cd.. โ†’ cd ..), otomatis menambah sudo, atau mengonversi apt โ†’ 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. + quickpush untuk add-commit-push instan.
  • Utilitas Harian: calc, jsonf, genpass, tmpd, backup, weather (default: Banjarmasin), pskill, fsearch, ff.

โšก Optimasi & Performa

  • Lazy Loading Docker: docker, dc, dex hanya 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.

๐Ÿ”Œ Ekstensi & Kustomisasi (Siap Pakai)

  • Integrasi FZF: Hapus tanda # di blok # FZF Integration untuk mengaktifkan pencarian fuzzy (fh, vf, fcd, fkill).
  • Keybinding Kustom: Navigasi kata Ctrl+Kiri/Kanan & pencarian history (otomatis menyesuaikan Ble.sh atau Bash standar).

๐Ÿ“ฆ Prasyarat

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.)

๐Ÿš€ Instalasi

  1. Backup konfigurasi lama:
    cp ~/.bashrc ~/.bashrc.backup
  2. Terapkan konfigurasi ini: Ganti isi ~/.bashrc Anda dengan skrip ini.
  3. Muat ulang:
    source ~/.bashrc

๐Ÿ“– Panduan Penggunaan Cepat

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)

โš™๏ธ Kustomisasi

  • Ganti Kota Default Cuaca: Edit local location="${1:-Banjarmasin}" pada fungsi weather().
  • Aktifkan FZF: Hapus tanda # di blok # FZF Integration. Pastikan fzf & fd terinstal.
  • Ganti Editor Default: Ubah export EDITOR="nano" di bagian Environment.
  • Nonaktifkan Sapaan Awal: Beri komentar pada baris show_greeting di akhir file.

๐Ÿ“ Path Penyimpanan Data

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 & starship bersifat 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.

About

backups and setups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors