feat: install jq via zinit if it is not already available

This commit is contained in:
2022-04-28 12:18:02 +01:00
parent 51d477a551
commit 3b3c6ab3a8
2 changed files with 9 additions and 0 deletions

8
zsh/jq.zsh Normal file
View File

@@ -0,0 +1,8 @@
#
# jq
#
if ! command-exists jq; then
zinit light-mode wait lucid from'gh-r' as'program' mv'jq* -> jq' \
for @stedolan/jq
fi

1
zshrc
View File

@@ -114,6 +114,7 @@ if [[ "$OSTYPE" == "linux"* ]]; then source "$DOTZSH/linux.zsh"; fi
# Utils
source "$DOTZSH/emacs.zsh"
source "$DOTZSH/fzf.zsh"
source "$DOTZSH/jq.zsh"
source "$DOTZSH/less.zsh"
source "$DOTZSH/rclone.zsh"
source "$DOTZSH/tmux.zsh"