This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
plugin_dir="${0:A:h}" | |
cache_file="$plugin_dir/_pnpm" | |
if (( $+commands[pnpm] )); then | |
if [[ ! -f "$cache_file" || ! $(/usr/bin/find "$cache_file" -mtime -15 2>/dev/null) ]]; then | |
pnpm completion zsh > "$cache_file" | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
# direnv is go, really fast, no need to cache | |
if (( $+commands[direnv] )); then | |
source <(direnv hook zsh) | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
# starship is rust based; no need to cache shell completions | |
if (( $+commands[starship] )); then | |
source <(starship completions zsh) | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE if you have multiple uv versions installed, the completion used will be random | |
plugin_dir="${0:A:h}" | |
uv_cache_file="$plugin_dir/_uv" | |
uvx_cache_file="$plugin_dir/_uvx" | |
if (( $+commands[uv] )); then | |
if [[ ! -f "$uv_cache_file" || ! $(/usr/bin/find "$uv_cache_file" -mtime -15 2>/dev/null) ]]; then | |
uv generate-shell-completion zsh > "$uv_cache_file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
# atuin is rust based; no need to cache shell completions | |
if (( $+commands[atuin] )); then | |
# not possible to disable up-arrow via a config | |
source <(atuin init zsh --disable-up-arrow) | |
source <(atuin gen-completions --shell zsh) | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
# just is rust, so we don't need to cache | |
if (( $+commands[just] )); then | |
source <(just --completions zsh) | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
cache_file="${0:A:h}/alias_cache.zsh" | |
if (( $+commands[mise] )); then | |
if [[ ! -f "$cache_file" || ! $(find "$cache_file" -mtime -15 2>/dev/null) ]]; then | |
mise completion zsh > "$cache_file" | |
fi | |
source "$cache_file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
plugin_dir="${0:A:h}" | |
cache_file="$plugin_dir/_rg" | |
if (( $+commands[rg] )); then | |
if [[ ! -f "$cache_file" || ! $(/usr/bin/find "$cache_file" -mtime -15 2>/dev/null) ]]; then | |
rg --generate=complete-zsh > "$cache_file" | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
cache_file="${0:A:h}/alias_cache.zsh" | |
if (( $+commands[gh] )); then | |
if [[ ! -f "$cache_file" || ! $(/usr/bin/find "$cache_file" -mtime -15 2>/dev/null) ]]; then | |
gh copilot alias -- zsh > "$cache_file" | |
gh completion --shell zsh >> "$cache_file" | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you execute this *after* asdf or other version managers are loaded | |
if (( $+commands[mcfly-fzf] )) && (( $+commands[fzf] )) && (( $+commands[mcfly] )); then | |
eval "$(mcfly init zsh)" | |
eval "$(mcfly-fzf init zsh)" | |
fi |
NewerOlder