From 3b3c6ab3a88b4e5f60637d629f6a39c4e31dc475 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 28 Apr 2022 12:18:02 +0100 Subject: [PATCH] feat: install jq via zinit if it is not already available --- zsh/jq.zsh | 8 ++++++++ zshrc | 1 + 2 files changed, 9 insertions(+) create mode 100644 zsh/jq.zsh diff --git a/zsh/jq.zsh b/zsh/jq.zsh new file mode 100644 index 0000000..6d17e8d --- /dev/null +++ b/zsh/jq.zsh @@ -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 diff --git a/zshrc b/zshrc index 318deeb..bb59260 100644 --- a/zshrc +++ b/zshrc @@ -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"