Skip to content

Commit d969f9a

Browse files
committed
feat(zsh): lock zsh plugins to their commit hashes
1 parent 9aaa743 commit d969f9a

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
1+
##
2+
# Get commit hashes using:
3+
#
4+
# ```sh
5+
# for d in $ZINIT[PLUGINS_DIR]/*(/); [[ -d $d/.git ]] && { u=$(git -C $d remote get-url origin); echo "${${u#https://github.com/}%.git}: \"$(git -C $d rev-parse HEAD)\"" }
6+
# ```
7+
##
8+
19
# Load `pure` prompt..
2-
zinit ice pick"async.zsh" src"pure.zsh"
10+
zinit ice ver'54bd501c802283dee0940457da6eb3e642bd1453' pick'async.zsh' src'pure.zsh'
311
zinit light sindresorhus/pure
412

513
# zsh-autosuggestions: Fish-like auto-suggestions.
14+
zinit ice ver'85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5'
615
zinit light zsh-users/zsh-autosuggestions
716

817
# zsh-autopair: Insert or delete brackets, parens, quotes in pair.
9-
zinit wait lucid for light-mode hlissner/zsh-autopair
18+
zinit wait lucid \
19+
ver'449a7c3d095bc8f3d78cf37b9549f8bb4c383f3d' \
20+
for light-mode hlissner/zsh-autopair
1021

1122
# zsh-system-clipboard: Synchronize system clipboard with ZLE registers.
12-
zinit wait lucid for light-mode kutsan/zsh-system-clipboard
23+
zinit wait lucid \
24+
ver'5f1d497ee3c215a967c0e6b9a772e73c40332d52' \
25+
for light-mode kutsan/zsh-system-clipboard
1326

1427
# fast-syntax-highlighting: Syntax highlighting support.
1528
zinit wait lucid \
29+
ver'3d574ccf48804b10dca52625df13da5edae7f553' \
1630
atload"FAST_HIGHLIGHT_STYLES[\${FAST_THEME_NAME}unknown-token]='fg=red'" \
1731
for light-mode zdharma-continuum/fast-syntax-highlighting

0 commit comments

Comments
 (0)