mirror of
https://github.com/guangzhiyao/myzsh.git
synced 2026-04-09 16:30:05 +00:00
personalized zsh setup
Prune verbose Atuin settings to a minimal, privacy-first set: set compact style, fuzzy search and global filtering; keep auto_sync disabled, enable enter_accept and inline_height, enable show_stats, and add theme = "marine" Overhaul Starship prompt: new layout and palette (catppuccin_mocha), rework module styles/formats, add language modules, cmd_duration, character/line_break modules, and multiple color palettes |
||
|---|---|---|
| .zshrc | ||
| atuin.toml | ||
| LICENSE | ||
| README.md | ||
| setup_zsh.sh | ||
| starship.toml | ||
myzsh
A small, opinionated Zsh setup that installs:
- Zsh + Oh-My-Zsh
- Starship prompt
- Atuin shell history
- Useful Zsh plugins (
zsh-autosuggestions,zsh-syntax-highlighting)
This repository provides a hardened, idempotent installer script: ./setup_zsh.sh.
Prerequisites
- Debian-based system (apt) is the primary target
gitand eithercurlorwgetavailable
Quick install
git clone https://github.com/guangzhiyao/myzsh
cd myzsh
chmod +x setup_zsh.sh
./setup_zsh.sh
Important installer behaviour
--dry-runshows actions without making changes.--clean/--forceperforms a clean install (replaces configs).--install-fontenables an optional best-effort Nerd Font download (disabled by default; useful only on UI/dev machines).- Existing user files are backed up with timestamps by default;
--cleanremoves targets before copying. - The installer downloads remote installers to temporary files for audit before execution.
- If an
Atuinconfiguration already exists at~/.config/atuin/config.toml, the shipped config will be skipped unless--cleanis used (to avoid duplicate TOML keys).
Post-install
- Restart your shell or run:
exec zsh - User configuration files written/modified:
~/.zshrc~/.config/starship.toml~/.config/atuin/config.toml(only when not present or when using--clean)
Notes & recommendations
- The installer assumes a Debian/apt environment. On other distros, run steps manually or adapt the script.
- If you want the provided configs but prefer to merge manually, consider copying
atuin.tomlto~/.config/atuin/config.toml.exampleand merging by hand. - Verify
starshipandatuinbehavior after install (e.g.,starship explain,atuin --version).
License
See the LICENSE file in this repository.