Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zsh configs #54

Merged
merged 39 commits into from
Sep 7, 2024
Merged

add zsh configs #54

merged 39 commits into from
Sep 7, 2024

Conversation

trinitronx
Copy link
Owner

@trinitronx trinitronx commented Sep 7, 2024

Completed almost all zsh tasks from Modernize terminal configs & dotfiles - LyraPhase/lyraphase_workstation#102

  • zsh: Add all top-level zsh configs
  • .chezmoiignore::zsh: Ignore Zsh cache & data files
  • .config/zsh: Track old .zlogin (from RVM install)
  • .config/zsh: Track Zsh HIST*SIZE settings
  • .config/zsh: Track Zsh + OMZ precmd overrides
  • .config/zsh: Track Zsh less UTF-8 char definition
  • .config/zsh: Track Zsh glab completion setup
  • .config/zsh: Track Zsh soroban completion
  • .config/zsh: Add date fzf function: dateFromEpoch
  • .config/zsh: Track Zsh cliphist-multi-del alias implementation
  • .config/zsh: Track Zsh cliphist-multi-del Sway script implementation & rm alias
  • .config/sway: Fix cliphist-multi-del Sway script path
  • .config/zsh: Track zsh config: fix-pushd.zsh (unsetopt pushdminus)
  • .config/oh-my-zsh: Track OMZ top-level config
  • .config/oh-my-zsh: Track OMZ example plugins
  • .config/oh-my-zsh: Track OMZ example theme
  • .config/zsh: rm .zlogin (RVM droppings)
  • .chezmoiexternal.yaml.tmpl: Add oh-my-zsh plugin: zhooks
  • .config/zsh/.zshrc: Merge comments
  • .config/oh-my-zsh/zshrc: Convert to Go template
  • .config/zsh/.zshrc: Fix syntax error when ZSH_HIGHLIGHT_STYLES unset (macOS)
  • .config/oh-my-zsh/zshrc: Handle OS-specific OMZ zshrc settings
  • .config/oh-my-zsh/zshrc: Fix ZSH_CACHE_DIR + completions permissions
  • .config/oh-my-zsh/zshrc: Fix newline at end of file
  • .chezmoi.yaml.tmpl, .config/oh-my-zsh: Simplify .osRelease.id logic into .osId
  • .chezmoiexternal.yaml.tmpl: Add OMZ theme: powerlevel10k (non-Manjaro OS only)
  • .config/oh-my-zsh, .chezmoiexternal.yaml.tmpl: Install oh-my-zsh via git for non-Manjaro OS
  • .chezmoiexternal.yaml.tmpl: Install p10k via git for non-Arch family OS
  • .chezmoiexternal.yaml.tmpl: Add oh-my-zsh plugin: zsh-sweep
  • .config/oh-my-zsh/zshrc: Clarify extra/manjaro-zsh-config via template comments
  • .config/zsh: Track OLD aliases for historical purposes
  • .config/zsh: Remove OLD aliases
  • .p10k.zsh: Track macOS p10k config
  • .p10k.zsh: Omit p10k config on Manjaro
  • .chezmoiexternal.yaml.tmpl: Add oh-my-zsh plugin: zsh-tmux-auto-title
  • .chezmoiignore, p10k: Symlink to powerlevel10k theme on Manjaro
  • .config/oh-my-zsh, p10k: Use powerlevel10k theme on Manjaro via symlink
  • .chezmoiignore: Never track .config/zsh/.zsh_history

Note: Tracking for historic record only... now implemented as script
…(macOS)

Note: This was causing p10k-instant-prompt to spew warnings about pre-sourcing output
Note: If setup for the first time on a system, these dirs will not exist
Zsh complains and bails out with a basic no-frills prompt & environment.
Errors were:

    [oh-my-zsh] Insecure completion-dependent directories detected:
    drwxrwxr-x  5 exampleuser  staff  160 Sep  6 21:57 /Users/exampleuser/.cache/oh-my-zsh
    drwxrwxr-x  2 exampleuser  staff   64 Sep  6 21:57 /Users/exampleuser/.cache/oh-my-zsh/completions

    [oh-my-zsh] For safety, we will not load completions from these directories until
    [oh-my-zsh] you fix their permissions and ownership and restart zsh.
    [oh-my-zsh] See the above list for directories with group or other writability.

    [oh-my-zsh] To fix your permissions you can do so by disabling
    [oh-my-zsh] the write permission of "group" and "others" and making sure that the
    [oh-my-zsh] owner of these directories is either root or your current user.
    [oh-my-zsh] The following command may help:
    [oh-my-zsh]     compaudit | xargs chmod g-w,o-w

    [oh-my-zsh] If the above didn't help or you want to skip the verification of
    [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
    [oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.

    [oh-my-zsh] theme 'powerlevel10k/powerlevel10k' not found
    [oh-my-zsh] theme 'powerlevel10k/powerlevel10k' not found
    [oh-my-zsh] Insecure completion-dependent directories detected:
    drwxrwxr-x  5 exampleuser  staff  160 Sep  6 21:57 /Users/exampleuser/.cache/oh-my-zsh
    drwxrwxr-x  2 exampleuser  staff   64 Sep  6 21:57 /Users/exampleuser/.cache/oh-my-zsh/completions

    [oh-my-zsh] For safety, we will not load completions from these directories until
    [oh-my-zsh] you fix their permissions and ownership and restart zsh.
    [oh-my-zsh] See the above list for directories with group or other writability.

    [oh-my-zsh] To fix your permissions you can do so by disabling
    [oh-my-zsh] the write permission of "group" and "others" and making sure that the
    [oh-my-zsh] owner of these directories is either root or your current user.
    [oh-my-zsh] The following command may help:
    [oh-my-zsh]     compaudit | xargs chmod g-w,o-w

    [oh-my-zsh] If the above didn't help or you want to skip the verification of
    [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
    [oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.
…nto .osId

Note: This is to work around the sub-par boolean logic in GoLang's text/template
language.
@trinitronx trinitronx added the enhancement New feature or request label Sep 7, 2024
@trinitronx trinitronx self-assigned this Sep 7, 2024
@trinitronx trinitronx merged commit 6ee53c2 into main Sep 7, 2024
@trinitronx trinitronx deleted the add-zsh-configs branch September 7, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant