1 zsh
Luca Matteo Spoljarevic edited this page 2026-02-27 21:44:07 +01:00
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.

Zsh

This folder holds the main Zsh config (.zshrc) and aliases (.zaliases) used for interactive shells: theme, plugins, PATH, and shortcuts.

What the config does

  • .zshrc

    • Powerlevel10k Instant prompt block at top; theme powerlevel10k/powerlevel10k; config in ~/.config/zsh/.p10k.zsh.
    • Oh My Zsh ZSH from $ZDOTDIR/oh-my-zsh; plugins: git, zsh-autosuggestions, zsh-syntax-highlighting.
    • Environment XDG_DATA_DIRS (Flatpak etc.), PATH with ~/.local/bin, SSH_AUTH_SOCK for GNOME keyring/agent.
    • Sourcing .zaliases from $ZDOTDIR or $HOME.
    • Misc PODMAN_COMPOSE_PROVIDER=podman-compose, Spicetify in PATH.
  • .zaliases

    • Shortcuts v = nvim, cl = clear, ff = fastfetch; neofetch → fastfetch.
    • Redirects sudo → doas; cdgit, cdgitls, cdgitw2i, cdgitw2io for repo directories.
    • Git Short aliases: g = git, gst, gc, ga, gpl, gpom, gpug/gpuc/gpul/gpuf, gp, gd, gch, gnb, gac, grs, gre, gr, gcl, glg, gt, grm, gb, gbsm/gbss, gbc, gf.

How to use it

  1. Install Zsh, Oh My Zsh, and Powerlevel10k (and optional: zsh-autosuggestions, zsh-syntax-highlighting).
  2. Set ZDOTDIR to ~/.config/zsh (e.g. in ~/.zshenv: export ZDOTDIR=~/.config/zsh), or symlink/copy .zshrc and .zaliases to your actual Zsh config location (e.g. ~/.zshrc and source .zaliases from there).
  3. Run p10k configure if you want to change the prompt; the theme config is in ~/.config/zsh/.p10k.zsh.
  4. Start Zsh (e.g. zsh or as default login shell). Aliases and PATH will be active; use v, ff, g, gst, etc. as in .zaliases.

File reference

File Purpose
.zshrc Theme, Oh My Zsh, plugins, env, source .zaliases
.zaliases Aliases for editor, git, cd, sudo, fastfetch