From 16cf22eddfc958cb774739027693eadc5d6c1d3d Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 8 Nov 2022 22:16:38 -0800 Subject: [PATCH] Add mkdir if needed calls to rg install script --- ripgrep/.local/bin/install-ripgrep | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ripgrep/.local/bin/install-ripgrep b/ripgrep/.local/bin/install-ripgrep index 3af320a..d5e0e08 100755 --- a/ripgrep/.local/bin/install-ripgrep +++ b/ripgrep/.local/bin/install-ripgrep @@ -18,6 +18,9 @@ URL=https://github.com/BurntSushi/ripgrep/releases/download/${VERSION}/ripgrep-$ extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1" set_current_link "${DEST}" "${VERSION}" +mkdir_if_missing "${XDG_CONFIG_HOME}/bash/bashrc.d" +mkdir_if_missing "${XDG_CONFIG_HOME}/fish/completions" + set_link "${XDG_BIN_HOME}/rg" "${DEST}" rg set_link "${MAN_DIR}/rg.1" "${DEST}" doc/rg.1 set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/ripgrep.sh" "${DEST}" complete/rg.bash