1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-02-24 22:49:26 +01:00
Real-world configuration files (basically zshrc-s) holding Zinit (former Zplugin) invocations
Find a file
Vladislav Doster a44d9a3d9e maint: normalize configuration file names to be "zshrc"
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-04 07:37:18 -05:00
.github/ISSUE_TEMPLATE Update issue templates 2019-06-17 07:39:13 +02:00
00dani maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
agkozak Update repo url 2021-11-10 18:36:15 +01:00
brucebentley Update repo url 2021-11-10 18:36:15 +01:00
jubi maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
lainiwa Zplugin → Zinit rename 2020-01-21 22:13:35 +01:00
NICHOLAS85 maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
numToStr maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
psprint maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
vladdoster maint: normalize configuration file names to be "zshrc" 2022-06-04 07:37:18 -05:00
.gitignore Make Dockerfile templated with build args 2019-06-29 07:54:07 +02:00
Dockerfile Zplugin → Zinit rename 2020-01-21 22:13:35 +01:00
LICENSE Initial commit 2019-06-17 03:27:52 +02:00
README.md Update repo url 2021-11-10 18:36:15 +01:00
run.sh psprint: Solved not working zplugin completion problem – Ubuntu compinit 2019-07-11 20:08:38 +02:00
zplugin-configs.plugin.zsh Fix bugs in run.sh and wrap into zsh module 2019-06-27 05:54:30 +02:00

Table of Contents generated with DocToc

zinit-configs

Pull-requests welcomed!

Feel free to submit your zshrc if it contains zinit commands.

Searching the repository

Use the Github search interface – just enter a query e.g. "trapd00r/LS_COLORS" like in the picture below, to find zshrc with references to this plugin, and ensure that you activate the "in this repository" variant of the search:

Starting search

Then, results should appear like below:

Search results

OR ...

just clone the repository and issue ack, ag or grep command :)

Submitting zshrc

You can either:

  • open a PR – fastest method
  • submit an issue with URL to the zshrc (or with the zshrc pasted) – a quick link

The repository structure

The structure of the repository is very simple: in its main directory there are directories located, named after the user-names of the submitting users. In those directories there are the zshrc files that the user decided to share.

Try configurations with docker

Requirements

You should have docker and zsh installed to use this functionality. Check you have them present on your system:

docker version
zsh --version

The other dependency is interactive filter. You should have either fzf or fzy in your $PATH. You might choose to install any of them via zinit:

# Install fzf
zinit ice from"gh-r" as"command"
zinit load junegunn/fzf-bin
# or fzy
zinit ice as"command" make"\!PREFIX=$ZPFX install" \
    atclone"cp contrib/fzy-* $ZPFX/bin/" \
    pick"$ZPFX/bin/fzy*"
zinit load jhawthorn/fzy

Keep in mind you will need a few Gb of free space to store docker images.

Running a configuration

To try a configuration, you have to clone this repository and execute a run.sh script:

# Clone repository with configurations
git clone 'https://github.com/zdharma-continuum/zinit-configs'
# Run the configuration picker
./zinit-configs/run.sh

… or you can install this repository as a zsh plugin!

# Then, install this repo
zinit load zdharma/zinit-configs
# Run the command
zinit-configs

Now you will have to wait for a few minutes, while the required environment is being installed into the docker image. The next time you will want to try a configuration, loading it will take less time.