Commit Graph
10 Commits
Author SHA1 Message Date
thomas.koppandClaude Opus 5 ce560c315d feat: split zshrc into a stub and role-aware fragments
Load order is the substance of this change, and two attempts got it wrong in
the same way. oh-my-zsh consumes both the plugins array and the theme while it
is being sourced, so anything set afterwards is silently ignored. The plan had
plugins in the stub but the theme in the role file, which produced a shell
reporting ZSH_THEME=powerlevel10k while running without powerlevel10k at all -
132 of its functions missing and nobody any the wiser. Plugins and prompt are
now both resolved before oh-my-zsh, the latter in 05-prompt.zsh.

Portability is handled by asking whether a command exists rather than by
duplicating files per role. "alias ls='lsd'" turns ls into a broken command on
a machine without lsd, and the Mac is such a machine; the yay aliases and
helpers are gated the same way. That keeps one shared base instead of three
diverging copies.

The plan also guessed the plugin list as (git fzf). It is actually seven
entries, so five would have vanished - among them signal-keyring, which turned
out to be a local custom plugin present on this machine only. Naming it
elsewhere means an oh-my-zsh warning at every login, and its content is a
verbatim copy of the gnome-keyring block already in .zshrc, so it ran twice.
The inline block stays, in the desktop role; the plugin is dropped.

Dead code removed rather than carried over:
  - PYTHONPATH pointed at /usr/lib/python3.9/site-packages. Python here is
    3.14 and that directory does not exist.
  - XDG_SESSION_TYPE was forced to x11 and then tested for "wayland" six lines
    below, so that branch could never be taken. The variable belongs to the
    session; overriding it lies to everything that reads it.
  - drm() was defined twice, the first losing to the second on every start.
  - PATH carried ~/bin, ~/.scripts and /usr/X11R6/bin, none of which exist.
    Entries are added only if the directory is there.

Verified against the live configuration in an isolated ZDOTDIR: 277 aliases and
263 functions on both sides, none missing, and powerlevel10k loading for all
three roles with the intended colour.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 15:41:52 +02:00
templis 246d477ea5 revision my zshrc
there where an old pythonpath and a function wasn't correct
2021-01-08 03:38:00 +01:00
templis 8b00fe1082 dunst konfiguriert, ein lautstärkescript für dunst geadded und allgemein änderungen/neuerungen etc. 2021-01-02 14:48:53 +01:00
templis 82cf38fe4c Add zshrc 2020-02-18 20:18:14 +01:00
templis 7635af3def aktualisierte configs 2020-02-18 20:16:15 +01:00
templis c95e3339c2 Ein paar änderungen
Vorallen angefangen neovim from scratch zu bauen
2018-07-29 01:50:51 +02:00
templis aa563a61c3 changed alias vi to open neovim instead of vim 2018-05-15 00:43:32 +02:00
templis 0d9dec905f added some explanations to zshrc 2018-04-09 03:38:41 +02:00
templis 01fba0e979 change dircolor on zshrc 2018-04-09 02:52:48 +02:00
templis 091caa538e Add zshrc 2018-04-09 01:08:12 +02:00